Class OptionAttributeBase
Common option properties.
Inheritance
System.Object
System.Attribute
OptionAttributeBase
Namespace: McMaster.Extensions.CommandLineUtils
Assembly: McMaster.Extensions.CommandLineUtils.dll
Syntax
public abstract class OptionAttributeBase : Attribute
Properties
| Improve this Doc View SourceDescription
A description of this option to show in generated help text.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
See Also
| Improve this Doc View SourceInherited
Determines if subcommands added to Commands should also have access to this option.
Declaration
public bool Inherited { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
See Also
| Improve this Doc View SourceLongName
The long command line flag used to identify this option. On command line, this is preceeded by a double dash: '--{LongName}'.
Declaration
public string LongName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ShortName
The short command line flag used to identify this option. On command line, this is preceeded by a single '-{ShortName}'.
Declaration
public string ShortName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ShowInHelpText
Determines if this option should be shown in generated help text.
Declaration
public bool ShowInHelpText { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
See Also
| Improve this Doc View SourceSymbolName
Can be used in addition to ShortName to add a single, non-English character. Example "-?".
Declaration
public string SymbolName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Template
The option template. This is parsed into the short and long name.
Declaration
public string Template { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ValueName
The name of value(s) shown in help text when OptionType is not NoValue.
Declaration
public string ValueName { get; set; }
Property Value
Type | Description |
---|---|
System.String |