17 references to CommandOptionType
Swaggatherer (17)
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:
SwaggathererApplication.cs (4)
21
HttpMethods = Option("-m|--method", "allow multiple endpoints with different http method",
CommandOptionType
.NoValue);
22
Input = Option("-i", "input swagger 2.0 JSON file",
CommandOptionType
.MultipleValue);
23
InputDirectory = Option("-d", "input directory",
CommandOptionType
.SingleValue);
24
Output = Option("-o", "output",
CommandOptionType
.SingleValue);