39 references to CommandOptionType
rzc (39)
CommandLine\CommandLineApplication.cs (8)
83public CommandOption Option(string template, string description, CommandOptionType optionType) 86public CommandOption Option(string template, string description, CommandOptionType optionType, bool inherited) 89public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration) 92public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration, bool inherited) 233else if (option.OptionType == CommandOptionType.NoValue) 302else if (option.OptionType == CommandOptionType.NoValue) 380OptionHelp = Option(template, "Show help information", CommandOptionType.NoValue); 406OptionVersion = Option(template, "Show version information", CommandOptionType.NoValue);
CommandLine\CommandOption.cs (5)
10public CommandOption(string template, CommandOptionType optionType) 59public CommandOptionType OptionType { get; private set; } 67case CommandOptionType.MultipleValue: 70case CommandOptionType.SingleValue: 77case CommandOptionType.NoValue:
DiscoverCommand.cs (6)
22TagHelperManifest = Option("-o", "output file", CommandOptionType.SingleValue); 23ProjectDirectory = Option("-p", "project root directory", CommandOptionType.SingleValue); 24Version = Option("-v|--version", "Razor language version", CommandOptionType.SingleValue); 25Configuration = Option("-c", "Razor configuration name", CommandOptionType.SingleValue); 26ExtensionNames = Option("-n", "extension name", CommandOptionType.MultipleValue); 27ExtensionFilePaths = Option("-e", "extension file path", CommandOptionType.MultipleValue);
GenerateCommand.cs (16)
20Sources = Option("-s", ".cshtml files to compile", CommandOptionType.MultipleValue); 21Outputs = Option("-o", "Generated output file path", CommandOptionType.MultipleValue); 22RelativePaths = Option("-r", "Relative path", CommandOptionType.MultipleValue); 23FileKinds = Option("-k", "File kind", CommandOptionType.MultipleValue); 24CssScopeSources = Option("-cssscopedinput", ".razor file with scoped CSS", CommandOptionType.MultipleValue); 25CssScopeValues = Option("-cssscopevalue", "CSS scope value for .razor file with scoped CSS", CommandOptionType.MultipleValue); 26ProjectDirectory = Option("-p", "project root directory", CommandOptionType.SingleValue); 27TagHelperManifest = Option("-t", "tag helper manifest file", CommandOptionType.SingleValue); 28Version = Option("-v|--version", "Razor language version", CommandOptionType.SingleValue); 29Configuration = Option("-c", "Razor configuration name", CommandOptionType.SingleValue); 30ExtensionNames = Option("-n", "extension name", CommandOptionType.MultipleValue); 31ExtensionFilePaths = Option("-e", "extension file path", CommandOptionType.MultipleValue); 32RootNamespace = Option("--root-namespace", "root namespace for generated code", CommandOptionType.SingleValue); 33CSharpLanguageVersion = Option("--csharp-language-version", "csharp language version generated code", CommandOptionType.SingleValue); 34GenerateDeclaration = Option("--generate-declaration", "Generate declaration", CommandOptionType.NoValue); 35SupportLocalizedComponentNames = Option("--support-localized-component-names", "support localized component names", CommandOptionType.NoValue);
ServerCommand.cs (2)
18Pipe = Option("-p|--pipe", "name of named pipe", CommandOptionType.SingleValue); 19KeepAlive = Option("-k|--keep-alive", "sets the default idle timeout for the server in seconds", CommandOptionType.SingleValue);
ShutdownCommand.cs (2)
14Pipe = Option("-p|--pipe", "name of named pipe", CommandOptionType.SingleValue); 15Wait = Option("-w|--wait", "wait for shutdown", CommandOptionType.NoValue);