12 [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
29 public VerbAttribute(
string name,
bool isDefault =
false,
string[] aliases =
null)
31 if (
string.IsNullOrWhiteSpace(name))
33 throw new ArgumentException(
"name");
40 Aliases = aliases ??
new string[0];
46 public string Name {
get;
private set; }
58 get => helpText.Value ??
string.Empty;
59 set => helpText.Value = value ??
throw new ArgumentNullException(
"value");
79 public string[]
Aliases {
get;
private set; }
Models a verb command specification.
string HelpText
Gets or sets a short description of this command line option. Usually a sentence summary.
bool Hidden
Gets or sets a value indicating whether a command line verb is visible in the help text.
Type ResourceType
Gets or sets the System.Type that contains the resources for HelpText.
string Name
Gets the verb name.
string[] Aliases
Gets or sets the aliases.
readonly LocalizableAttributeProperty helpText
bool IsDefault
Gets whether this verb is the default verb.
VerbAttribute(string name, bool isDefault=false, string[] aliases=null)
Initializes a new instance of the CommandLine.VerbAttribute class.