17 references to CommandOptionType
GetDocument.Insider (17)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (8)
89
public CommandOption Option(string template, string description,
CommandOptionType
optionType)
92
public CommandOption Option(string template, string description,
CommandOptionType
optionType, bool inherited)
95
public CommandOption Option(string template, string description,
CommandOptionType
optionType, Action<CommandOption> configuration)
98
public CommandOption Option(string template, string description,
CommandOptionType
optionType, Action<CommandOption> configuration, bool inherited)
239
else if (option.OptionType ==
CommandOptionType
.NoValue)
308
else if (option.OptionType ==
CommandOptionType
.NoValue)
386
OptionHelp = Option(template, "Show help information",
CommandOptionType
.NoValue);
412
OptionVersion = Option(template, "Show version information",
CommandOptionType
.NoValue);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (5)
12
public CommandOption(string template,
CommandOptionType
optionType)
61
public
CommandOptionType
OptionType { get; private set; }
69
case
CommandOptionType
.MultipleValue:
72
case
CommandOptionType
.SingleValue:
79
case
CommandOptionType
.NoValue:
src\Tools\Shared\CommandLine\CommandLineApplicationExtensions.cs (4)
16
=> app.Option("-v|--verbose", "Show verbose output",
CommandOptionType
.NoValue, inherited: true);
34
? template.EndsWith(">...", StringComparison.Ordinal) ?
CommandOptionType
.MultipleValue :
CommandOptionType
.SingleValue
35
:
CommandOptionType
.NoValue);