21 references to CommandOptionType
dotnet-user-secrets (21)
CommandLineOptions.cs (3)
37
CommandOptionType
.SingleValue, inherited: true);
40
CommandOptionType
.SingleValue, inherited: true);
45
CommandOptionType
.SingleValue, inherited: true);
Internal\ListCommand.cs (1)
20
CommandOptionType
.NoValue);
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);