1 instantiation of CommandOption
dotnet-user-secrets (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
100
var option = new
CommandOption
(template, optionType)
25 references to CommandOption
dotnet-user-secrets (25)
CommandLineOptions.cs (4)
34
var
optionVerbose = app.VerboseOption();
36
var
optionProject = app.Option("-p|--project <PROJECT>", "Path to project. Defaults to searching the current directory.",
39
var
optionConfig = app.Option("-c|--configuration <CONFIGURATION>", "The project configuration to use. Defaults to 'Debug'.",
44
var
optionId = app.Option("--id", "The user secret ID to use.",
Internal\ListCommand.cs (1)
19
var
optJson = command.Option("--json", "Use json output. JSON is wrapped by '//BEGIN' and '//END'",
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)