getopt.net
A port of getopt in pure C#.
|
Represents a single argument received via command-line options. More...
Public Member Functions | |
CommandOption () | |
Default constructor. | |
CommandOption (int optChar, object? optArg=null) | |
Object constructor - instantiates a new instance of this class. | |
Properties | |
int | OptChar [get, set] |
The option character that was received. | |
Type? | ArgumentType [get, set] |
The type of the argument that was received. | |
object? | OptionArgument [get, set] |
The actual argument passed to the application. | |
Represents a single argument received via command-line options.
Definition at line 8 of file CommandOption.cs.
|
inline |
|
inline |
Object constructor - instantiates a new instance of this class.
optChar | The value of the option passed. |
optArg | The option's argument (if any) |
Definition at line 20 of file CommandOption.cs.
References getopt.net.CommandOption.OptionArgument.
|
getset |
The type of the argument that was received.
Possible types are int, string, bool, double
Definition at line 35 of file CommandOption.cs.
|
getset |
The option character that was received.
Definition at line 28 of file CommandOption.cs.
|
getset |
The actual argument passed to the application.
Definition at line 40 of file CommandOption.cs.
Referenced by getopt.net.CommandOption.CommandOption().