22 references to CommandOptionType
dotnet-openapi (22)
Commands\AddFileCommand.cs (1)
23_codeGeneratorOption = Option("-c|--code-generator", "The code generator to use. Defaults to 'NSwagCSharp'.", CommandOptionType.SingleValue);
Commands\AddProjectCommand.cs (1)
21_codeGeneratorOption = Option("-c|--code-generator", "The code generator to use. Defaults to 'NSwagCSharp'.", CommandOptionType.SingleValue);
Commands\AddURLCommand.cs (2)
22_codeGeneratorOption = Option("-c|--code-generator", "The code generator to use. Defaults to 'NSwagCSharp'.", CommandOptionType.SingleValue); 23_outputFileOption = Option(OutputFileName, "The destination to download the remote OpenAPI file to.", CommandOptionType.SingleValue);
Commands\BaseCommand.cs (1)
42ProjectFileOption = Option("-p|--updateProject", "The project file update.", CommandOptionType.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);