21 references to CommandOptionType
dotnet-user-secrets (21)
CommandLineOptions.cs (3)
37CommandOptionType.SingleValue, inherited: true); 40CommandOptionType.SingleValue, inherited: true); 45CommandOptionType.SingleValue, inherited: true);
Internal\ListCommand.cs (1)
20CommandOptionType.NoValue);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (8)
89public CommandOption Option(string template, string description, CommandOptionType optionType) 92public CommandOption Option(string template, string description, CommandOptionType optionType, bool inherited) 95public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration) 98public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration, bool inherited) 239else if (option.OptionType == CommandOptionType.NoValue) 308else if (option.OptionType == CommandOptionType.NoValue) 386OptionHelp = Option(template, "Show help information", CommandOptionType.NoValue); 412OptionVersion = Option(template, "Show version information", CommandOptionType.NoValue);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (5)
12public CommandOption(string template, CommandOptionType optionType) 61public CommandOptionType OptionType { get; private set; } 69case CommandOptionType.MultipleValue: 72case CommandOptionType.SingleValue: 79case 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);