1 instantiation of CommandOption
dotnet-dev-certs (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
100
var option = new
CommandOption
(template, optionType)
39 references to CommandOption
dotnet-dev-certs (39)
Program.cs (19)
66
var
exportPath = c.Option("-ep|--export-path",
70
var
password = c.Option("-p|--password",
75
var
noPassword = c.Option("-np|--no-password",
79
var
check = c.Option(
84
var
clean = c.Option(
89
var
import = c.Option(
94
var
format = c.Option(
99
CommandOption
trust = null;
104
var
verbose = c.Option("-v|--verbose",
108
var
quiet = c.Option("-q|--quiet",
201
private static int ImportCertificate(
CommandOption
import,
CommandOption
password, ConsoleReporter reporter)
275
private static int CheckHttpsCertificate(
CommandOption
trust,
CommandOption
verbose, IReporter reporter)
337
private static int EnsureHttpsCertificate(
CommandOption
exportPath,
CommandOption
password,
CommandOption
noPassword,
CommandOption
trust,
CommandOption
exportFormat, IReporter reporter)
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)