Go to the documentation of this file.
22 #ifndef CMDLINE_PARSER_PACKAGE
24 #define CMDLINE_PARSER_PACKAGE PACKAGE
27 #ifndef CMDLINE_PARSER_PACKAGE_NAME
30 #define CMDLINE_PARSER_PACKAGE_NAME PACKAGE_NAME
32 #define CMDLINE_PARSER_PACKAGE_NAME PACKAGE
36 #ifndef CMDLINE_PARSER_VERSION
38 #define CMDLINE_PARSER_VERSION VERSION
120 int override,
int initialize,
int check_required);
197 const char *prog_name);
int msg_parser_flag
Output file parsing messages (default=off).
unsigned int help_given
Whether help was given.
unsigned int msg_info_given
Whether msg_info was given.
const char * msg_status_help
Output status messages help description.
char * import_format_arg
Force the file format of the file(s) specified (default='AUTODETECT').
const char * gengetopt_args_info_description
the description string of the program
const char * msg_warning_help
Output warning messages about abnormal conditions and unknown constructs help description.
unsigned int msg_parser_given
Whether msg_parser was given.
unsigned int msg_status_given
Whether msg_status was given.
void cmdline_parser_free(struct gengetopt_args_info *args_info)
char ** inputs
unnamed options (options without names)
void cmdline_parser_init(struct gengetopt_args_info *args_info)
int msg_error_flag
Output error messages (default=on).
unsigned int msg_debug_given
Whether msg_debug was given.
int msg_debug_flag
Output messages meant for debugging (default=off).
unsigned int list_import_formats_given
Whether list-import-formats was given.
unsigned int version_given
Whether version was given.
unsigned int msg_warning_given
Whether msg_warning was given.
const char * msg_debug_help
Output messages meant for debugging help description.
struct cmdline_parser_params * cmdline_parser_params_create(void)
const char * import_format_help
Force the file format of the file(s) specified help description.
const char * list_import_formats_help
List available import file formats 'import-format' command help description.
unsigned int import_format_given
Whether import-format was given.
const char * version_help
Print version and exit help description.
void cmdline_parser_params_init(struct cmdline_parser_params *params)
int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info)
const char * msg_parser_help
Output file parsing messages help description.
const char * gengetopt_args_info_purpose
the purpose string of the program
const char * msg_error_help
Output error messages help description.
int check_ambiguity
whether to check for options already specified in the option structure gengetopt_args_info (default 0...
int cmdline_parser(int argc, char **argv, struct gengetopt_args_info *args_info)
char * import_format_orig
Force the file format of the file(s) specified original value given at command line.
int msg_status_flag
Output status messages (default=on).
int print_errors
whether getopt_long should print an error message for a bad option (default 1)
unsigned inputs_num
unnamed options number
void cmdline_parser_print_version(void)
const char * gengetopt_args_info_help[]
all the lines making the help output
int msg_warning_flag
Output warning messages about abnormal conditions and unknown constructs (default=on).
int cmdline_parser_ext(int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params)
void cmdline_parser_print_help(void)
Where the command line options are stored.
int cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info)
The additional parameters to pass to parser functions.
int cmdline_parser_required(struct gengetopt_args_info *args_info, const char *prog_name)
const char * msg_info_help
Output informational messages about the progress of the library help description.
const char * help_help
Print help and exit help description.
int initialize
whether to initialize the option structure gengetopt_args_info (default 1)
int msg_info_flag
Output informational messages about the progress of the library (default=on).
int check_required
whether to check that all required options were provided (default 1)
const char * gengetopt_args_info_usage
the usage string of the program
int cmdline_parser2(int argc, char **argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required)
unsigned int msg_error_given
Whether msg_error was given.