Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ static void DefineOptions(string[] args)
// <defineoptions>
Option<int> delayOption = new("--delay", "-d")
{
Description = "An option whose argument is parsed as an int.",
Description = "An option whose argument is parsed as an int",
DefaultValueFactory = parseResult => 42,
};
Option<string> messageOption = new("--message", "-m")
{
Description = "An option whose argument is parsed as a string."
Description = "An option whose argument is parsed as a string"
};

RootCommand rootCommand = new();
Expand Down Expand Up @@ -88,7 +88,7 @@ static void ParseErrors(string[] args)
// <parseerrors>
Option<string> verbosityOption = new("--verbosity", "-v")
{
Description = "Set the verbosity level.",
Description = "Set the verbosity level",
};
verbosityOption.AcceptOnlyFromAmong("quiet", "minimal", "normal", "detailed", "diagnostic");
RootCommand rootCommand = new() { verbosityOption };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static void VerbosityOptionExample(string[] args)
// Add -q as a separate option for quiet verbosity.
Option<bool> quietOption = new("-q")
{
Description = "Set verbosity to quiet (shorthand for --verbosity quiet).",
Description = "Set verbosity to quiet (shorthand for --verbosity quiet)",
Recursive = true
};

Expand Down
Loading