 |
The ROme OpTimistic Simulator
3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
|
const char * header
The header printed before this section in the --help text.
const char * prog_doc
A description of the program.
const char * arg
The argument name for this option, shown in the --usage text.
A single parsable command line option.
@ AP_KEY_INIT
Signals the start of the parsing process.
const char * doc
The documentation of this option, shown in the --help text.
A set of options organized and parsed together.
int key
The key passed to the parsing function when encountering this option.
@ AP_KEY_FINI
Signals the end of the parsing process.
A complete command line option parsing setup.
const char * prog_version
A description of the program version.
void arg_parse_error(const char *fmt,...)
Prints a parsing related error message and exits with a bad exit code.
ap_event_key
The special events keys passed to command line parsing functions.
const char * arg_parse_program_name(void)
Gets the program name.
const char * name
The long option name.
const char * prog_report
The email address of the maintainer.
void arg_parse_run(struct ap_settings *ap_s, char **argv)
Parses the command line options.
struct ap_section * sects
The array of supported sections, terminated by a zeroed element.
struct ap_option * opts
The array of recognized options, terminated by a zeroed element.
void(* parser)(int key, const char *arg)
The parsing function.