MPSolve 3.2.1
|
This struct holds a configuration for a command line option. This is a step towards a more flexible implementation of the option parser, compared to the traditional getopts() call. More...
#include <options.h>
Public Attributes | |
char | format |
This is the character that is recognized as starting the option specification on the command line. More... | |
mps_boolean | argument |
This value is true if an argument may be specified for the option. More... | |
mps_boolean | mandatory |
If this value is true then the argument for the option is mandatory. Note that this value should be true only if argument is true. | |
char * | long_format |
An optional long format for the option, or NULL if no long format is specified. | |
This struct holds a configuration for a command line option. This is a step towards a more flexible implementation of the option parser, compared to the traditional getopts() call.
mps_boolean mps_command_line_option::argument |
This value is true if an argument may be specified for the option.
The argument may or may not be mandatory, according to the mandatory field of this struct.
char mps_command_line_option::format |
This is the character that is recognized as starting the option specification on the command line.
This value may be '\0' if only the long format is provided for this option.