CommandOption Class

Namespace
Microsoft.Extensions.CommandLineUtils
Assemblies
  • Microsoft.Extensions.CommandLineUtils

Syntax

public class CommandOption
class Microsoft.Extensions.CommandLineUtils.CommandOption

Constructors

CommandOption(System.String, Microsoft.Extensions.CommandLineUtils.CommandOptionType)
public CommandOption(string template, CommandOptionType optionType)

Properties

Microsoft.Extensions.CommandLineUtils.CommandOption.Description
Return type:System.String
public string Description { get; set; }
Microsoft.Extensions.CommandLineUtils.CommandOption.LongName
Return type:System.String
public string LongName { get; set; }
Microsoft.Extensions.CommandLineUtils.CommandOption.OptionType
Return type:Microsoft.Extensions.CommandLineUtils.CommandOptionType
public CommandOptionType OptionType { get; }
Microsoft.Extensions.CommandLineUtils.CommandOption.ShortName
Return type:System.String
public string ShortName { get; set; }
Microsoft.Extensions.CommandLineUtils.CommandOption.SymbolName
Return type:System.String
public string SymbolName { get; set; }
Microsoft.Extensions.CommandLineUtils.CommandOption.Template
Return type:System.String
public string Template { get; set; }
Microsoft.Extensions.CommandLineUtils.CommandOption.ValueName
Return type:System.String
public string ValueName { get; set; }
Microsoft.Extensions.CommandLineUtils.CommandOption.Values
Return type:System.Collections.Generic.List<System.String>
public List<string> Values { get; }

Methods

HasValue()
Return type:System.Boolean
public bool HasValue()
TryParse(System.String)
Return type:System.Boolean
public bool TryParse(string value)
Value()
Return type:System.String
public string Value()