1 instantiation of CommandOption
dotnet-openapi (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
100
var option = new
CommandOption
(template, optionType)
30 references to CommandOption
dotnet-openapi (30)
Application.cs (1)
53
public
CommandOption
Help { get; }
Commands\AddFileCommand.cs (1)
28
internal readonly
CommandOption
_codeGeneratorOption;
Commands\AddProjectCommand.cs (1)
26
internal readonly
CommandOption
_codeGeneratorOption;
Commands\AddURLCommand.cs (2)
27
internal readonly
CommandOption
_outputFileOption;
30
internal readonly
CommandOption
_codeGeneratorOption;
Commands\BaseCommand.cs (5)
56
public
CommandOption
ProjectFileOption { get; }
95
internal FileInfo ResolveProjectFile(
CommandOption
projectOption)
262
internal async Task<string> DownloadGivenOption(string url,
CommandOption
fileOption)
410
internal static CodeGenerator? GetCodeGenerator(
CommandOption
codeGeneratorOption)
425
internal static void ValidateCodeGenerator(
CommandOption
codeGeneratorOption)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (17)
39
Options = new List<
CommandOption
>();
53
public readonly List<
CommandOption
> Options;
54
public
CommandOption
OptionHelp { get; private set; }
55
public
CommandOption
OptionVersion { get; private set; }
67
public IEnumerable<
CommandOption
> GetOptions()
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)
100
var
option = new CommandOption(template, optionType)
145
CommandOption
option = null;
382
public
CommandOption
HelpOption(string template)
391
public
CommandOption
VersionOption(string template,
406
public
CommandOption
VersionOption(string template,
498
foreach (
var
opt in options)
src\Tools\Shared\CommandLine\CommandLineApplicationExtensions.cs (3)
12
public static
CommandOption
HelpOption(this CommandLineApplication app)
15
public static
CommandOption
VerboseOption(this CommandLineApplication app)
25
public static
CommandOption
Option(this CommandLineApplication command, string template, string description)