MPSolve 3.2.1
Loading...
Searching...
No Matches
mps_command_line_option Struct Reference

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.
 

Detailed Description

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.

Member Data Documentation

◆ argument

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.

◆ format

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.


The documentation for this struct was generated from the following file: