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