Skip to content

Commit a9b208a

Browse files
authored
Remove trailing periods from option descriptions (#50808)
1 parent f00deb9 commit a9b208a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/standard/commandline/snippets/define-symbols/csharp/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ static void DefineOptions(string[] args)
4040
// <defineoptions>
4141
Option<int> delayOption = new("--delay", "-d")
4242
{
43-
Description = "An option whose argument is parsed as an int.",
43+
Description = "An option whose argument is parsed as an int",
4444
DefaultValueFactory = parseResult => 42,
4545
};
4646
Option<string> messageOption = new("--message", "-m")
4747
{
48-
Description = "An option whose argument is parsed as a string."
48+
Description = "An option whose argument is parsed as a string"
4949
};
5050

5151
RootCommand rootCommand = new();
@@ -88,7 +88,7 @@ static void ParseErrors(string[] args)
8888
// <parseerrors>
8989
Option<string> verbosityOption = new("--verbosity", "-v")
9090
{
91-
Description = "Set the verbosity level.",
91+
Description = "Set the verbosity level",
9292
};
9393
verbosityOption.AcceptOnlyFromAmong("quiet", "minimal", "normal", "detailed", "diagnostic");
9494
RootCommand rootCommand = new() { verbosityOption };

docs/standard/commandline/snippets/global-options/csharp/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static void VerbosityOptionExample(string[] args)
6666
// Add -q as a separate option for quiet verbosity.
6767
Option<bool> quietOption = new("-q")
6868
{
69-
Description = "Set verbosity to quiet (shorthand for --verbosity quiet).",
69+
Description = "Set verbosity to quiet (shorthand for --verbosity quiet)",
7070
Recursive = true
7171
};
7272

0 commit comments

Comments
 (0)