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