1 instantiation of CommandOption
dotnet-dev-certs (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
100var option = new CommandOption(template, optionType)
40 references to CommandOption
dotnet-dev-certs (40)
Program.cs (20)
70var exportPath = c.Option("-ep|--export-path", 74var password = c.Option("-p|--password", 79var noPassword = c.Option("-np|--no-password", 83var check = c.Option( 88var clean = c.Option( 93var import = c.Option( 98var format = c.Option( 103CommandOption trust = null; 109var verbose = c.Option("-v|--verbose", 113var quiet = c.Option("-q|--quiet", 117var checkJsonOutput = c.Option("--check-trust-machine-readable", 226private static int ImportCertificate(CommandOption import, CommandOption password, ConsoleReporter reporter) 300private static int CheckHttpsCertificate(CommandOption trust, CommandOption verbose, IReporter reporter) 372private static int EnsureHttpsCertificate(CommandOption exportPath, CommandOption password, CommandOption noPassword, CommandOption trust, CommandOption exportFormat, IReporter reporter)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (17)
39Options = new List<CommandOption>(); 53public readonly List<CommandOption> Options; 54public CommandOption OptionHelp { get; private set; } 55public CommandOption OptionVersion { get; private set; } 67public IEnumerable<CommandOption> GetOptions() 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) 100var option = new CommandOption(template, optionType) 145CommandOption option = null; 382public CommandOption HelpOption(string template) 391public CommandOption VersionOption(string template, 406public CommandOption VersionOption(string template, 498foreach (var opt in options)
src\Tools\Shared\CommandLine\CommandLineApplicationExtensions.cs (3)
12public static CommandOption HelpOption(this CommandLineApplication app) 15public static CommandOption VerboseOption(this CommandLineApplication app) 25public static CommandOption Option(this CommandLineApplication command, string template, string description)