36 references to CommandOptionType
dotnet-user-jwts (36)
Commands\ClearCommand.cs (1)
20
CommandOptionType
.NoValue);
Commands\CreateCommand.cs (10)
32
CommandOptionType
.SingleValue
38
CommandOptionType
.SingleValue);
43
CommandOptionType
.MultipleValue);
48
CommandOptionType
.SingleValue);
53
CommandOptionType
.MultipleValue);
58
CommandOptionType
.MultipleValue);
63
CommandOptionType
.MultipleValue);
68
CommandOptionType
.SingleValue);
73
CommandOptionType
.SingleValue);
78
CommandOptionType
.SingleValue);
Commands\KeyCommand.cs (4)
21
CommandOptionType
.SingleValue);
26
CommandOptionType
.SingleValue
32
CommandOptionType
.NoValue);
37
CommandOptionType
.NoValue);
Commands\ListCommand.cs (1)
21
CommandOptionType
.NoValue);
Commands\PrintCommand.cs (1)
18
var showAllOption = cmd.Option("--show-all", Resources.PrintCommand_ShowAllOption_Description,
CommandOptionType
.NoValue);
Commands\ProjectCommandLineApplication.cs (2)
23
CommandOptionType
.SingleValue);
28
CommandOptionType
.SingleValue);
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);