coan 4.2.4
|
#include <get_options.h>
Data Fields | |
const char * | name |
int | has_arg |
int * | flag |
int | val |
Info structure for an option for getopt_long().
Definition at line 60 of file get_options.h.
int* option::flag |
NULL
here makes getopt_long() return the field val
if this option is matched. Non-null makes getopt_long() return 0 if any option is matched, and set the int
addressed by flag == val
/ if this option is matched, otherwise leaving it unchanged.
Definition at line 75 of file get_options.h.
Referenced by getopt_long().
int option::has_arg |
Can the option take an argument? One of:
no_argument
required_argument
optional
argument Definition at line 68 of file get_options.h.
Referenced by make_opts_list().
const char* option::name |
The name of the option
Definition at line 62 of file get_options.h.
Referenced by get_long_opt_name(), getopt_long(), and make_opts_list().
int option::val |
Value to be returned or stored by getopt_long() if this option is matched (depending on flag
).
Definition at line 79 of file get_options.h.
Referenced by get_long_opt_name(), getopt_long(), and make_opts_list().