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. More... | |
Option (string name, ArgumentType argType, char value) | |
Constructs a new instance of this struct with a char as the value type. More... | |
Option (string name, ArgumentType argType, int value) | |
Constructs a new instance of this struct with an int as the value type. More... | |
Properties | |
string? | Name [get, set] |
The name of the (long) option More... | |
ArgumentType? | ArgumentType [get, set] |
The type of argument this option requires. More... | |
int | Value [get, set] |
The value (short opt) for the option. More... | |
|
inline |
|
inline |
|
inline |
Constructs a new instance of this struct with an int as the value type.
name | |
argType | |
value |
Definition at line 29 of file Option.cs.
References getopt.net.Option.Name, and getopt.net.Option.Value.
|
getset |
|
getset |
The name of the (long) option
Do not prefix this with dashes.
help
Definition at line 44 of file Option.cs.
Referenced by getopt.net.Option.Option().
|
getset |
The value (short opt) for the option.
Definition at line 54 of file Option.cs.
Referenced by getopt.net.Option.Option().