Models an option specification. More...
Public Member Functions | |
OptionAttribute () | |
Initializes a new instance of the CommandLine.OptionAttribute class. The default long name will be inferred from target property. More... | |
OptionAttribute (string longName) | |
Initializes a new instance of the CommandLine.OptionAttribute class. More... | |
OptionAttribute (char shortName, string longName) | |
Initializes a new instance of the CommandLine.OptionAttribute class. More... | |
OptionAttribute (char shortName) | |
Initializes a new instance of the CommandLine.OptionAttribute class. More... | |
Properties | |
string | LongName [get] |
Gets long name of this command line option. This name is usually a single english word. More... | |
string | ShortName [get] |
Gets a short name of this command line option, made of one character. More... | |
bool | Required [get, set] |
Gets or sets a value indicating whether a command line option is required. More... | |
string | SetName [get, set] |
Gets or sets the option's mutually exclusive set name. More... | |
int | Min [get, set] |
When applied to System.Collections.Generic.IEnumerable{T} properties defines the lower range of items. More... | |
int | Max [get, set] |
When applied to System.Collections.Generic.IEnumerable{T} properties defines the upper range of items. More... | |
object | DefaultValue [get, set] |
Gets or sets mapped property default value. More... | |
string | HelpText [get, set] |
Gets or sets a short description of this command line option. Usually a sentence summary. More... | |
string | MetaValue [get, set] |
Gets or sets mapped property meta value. Usually an uppercase hint of required value type. More... | |
Models an option specification.
|
inline |
Initializes a new instance of the CommandLine.OptionAttribute class. The default long name will be inferred from target property.
|
inline |
Initializes a new instance of the CommandLine.OptionAttribute class.
longName | The long name of the option. |
|
inline |
Initializes a new instance of the CommandLine.OptionAttribute class.
shortName | The short name of the option. |
longName | The long name of the option or null if not used. |
|
inline |
Initializes a new instance of the CommandLine.OptionAttribute class.
shortName | The short name of the option.. |
|
getset |
Gets or sets mapped property default value.
|
getset |
Gets or sets a short description of this command line option. Usually a sentence summary.
|
get |
Gets long name of this command line option. This name is usually a single english word.
|
getset |
When applied to System.Collections.Generic.IEnumerable{T} properties defines the upper range of items.
If not set, no upper range is enforced.
|
getset |
Gets or sets mapped property meta value. Usually an uppercase hint of required value type.
|
getset |
When applied to System.Collections.Generic.IEnumerable{T} properties defines the lower range of items.
If not set, no lower range is enforced.
|
getset |
Gets or sets a value indicating whether a command line option is required.
|
getset |
Gets or sets the option's mutually exclusive set name.
|
get |
Gets a short name of this command line option, made of one character.