getopt.net
A port of getopt in pure C#.
|
Represents a single long option for getopt. More...
Public Member Functions | |
Option () | |
Constructs a new, empty instance of this struct. | |
Option (string name, ArgumentType argType, char value, string description="") | |
Constructs a new instance of this struct with a char as the value type. | |
Option (string name, ArgumentType argType, int value, string description="") | |
Constructs a new instance of this struct with an int as the value type. | |
Properties | |
string? | Name [get, set] |
The name of the (long) option. | |
ArgumentType? | ArgumentType [get, set] |
The type of argument this option requires. | |
int | Value [get, set] |
The value (short opt) for the option. | |
string? | Description [get, set] |
The description of the option. | |
|
inline |
|
inline |
Constructs a new instance of this struct with a char as the value type.
name | The name of the argument. |
argType | The argument type. |
value | The value of the option. |
description | The description of the option. |
Definition at line 22 of file Option.cs.
|
inline |
Constructs a new instance of this struct with an int as the value type.
name | The name of the argument. |
argType | The argument type. |
value | The value of the option. |
description | The description of the option. |
Definition at line 31 of file Option.cs.
References getopt.net.Option.Description, getopt.net.Option.Name, and getopt.net.Option.Value.
|
getset |
|
getset |
The description of the option.
Definition at line 62 of file Option.cs.
Referenced by getopt.net.Option.Option().
|
getset |
The name of the (long) option.
Do not prefix this with dashes.
help
Definition at line 47 of file Option.cs.
Referenced by getopt.net.Extensions.FindOptionOrDefault(), and getopt.net.Option.Option().
|
getset |
The value (short opt) for the option.
Definition at line 57 of file Option.cs.
Referenced by getopt.net.Option.Option().