ofxdump/cmdline.h
#ifndef CMDLINE_H
#define CMDLINE_H
/* If we use autoconf. */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h> /* for FILE */
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#ifndef CMDLINE_PARSER_PACKAGE
#define CMDLINE_PARSER_PACKAGE PACKAGE
#endif
#ifndef CMDLINE_PARSER_PACKAGE_NAME
#ifdef PACKAGE_NAME
#define CMDLINE_PARSER_PACKAGE_NAME PACKAGE_NAME
#else
#define CMDLINE_PARSER_PACKAGE_NAME PACKAGE
#endif
#endif
#ifndef CMDLINE_PARSER_VERSION
#define CMDLINE_PARSER_VERSION VERSION
#endif
struct gengetopt_args_info
{
const char *help_help;
const char *version_help;
char * import_format_arg;
char * import_format_orig;
const char *import_format_help;
const char *list_import_formats_help;
int msg_parser_flag;
const char *msg_parser_help;
int msg_debug_flag;
const char *msg_debug_help;
int msg_warning_flag;
const char *msg_warning_help;
int msg_error_flag;
const char *msg_error_help;
int msg_info_flag;
const char *msg_info_help;
int msg_status_flag;
const char *msg_status_help;
unsigned int help_given ;
unsigned int version_given ;
unsigned int import_format_given ;
unsigned int list_import_formats_given ;
unsigned int msg_parser_given ;
unsigned int msg_debug_given ;
unsigned int msg_warning_given ;
unsigned int msg_error_given ;
unsigned int msg_info_given ;
unsigned int msg_status_given ;
char **inputs ;
unsigned inputs_num ;
} ;
struct cmdline_parser_params
{
int override;
int initialize;
int check_required;
int check_ambiguity;
int print_errors;
} ;
extern const char *gengetopt_args_info_purpose;
extern const char *gengetopt_args_info_usage;
extern const char *gengetopt_args_info_description;
extern const char *gengetopt_args_info_help[];
int cmdline_parser (int argc, char **argv,
struct gengetopt_args_info *args_info);
int cmdline_parser2 (int argc, char **argv,
struct gengetopt_args_info *args_info,
int override, int initialize, int check_required);
int cmdline_parser_ext (int argc, char **argv,
struct gengetopt_args_info *args_info,
struct cmdline_parser_params *params);
int cmdline_parser_dump(FILE *outfile,
struct gengetopt_args_info *args_info);
int cmdline_parser_file_save(const char *filename,
struct gengetopt_args_info *args_info);
void cmdline_parser_print_help(void);
void cmdline_parser_print_version(void);
void cmdline_parser_params_init(struct cmdline_parser_params *params);
struct cmdline_parser_params *cmdline_parser_params_create(void);
void cmdline_parser_init (struct gengetopt_args_info *args_info);
void cmdline_parser_free (struct gengetopt_args_info *args_info);
int cmdline_parser_required (struct gengetopt_args_info *args_info,
const char *prog_name);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* CMDLINE_H */
gengetopt_args_info::msg_info_flag
int msg_info_flag
Output informational messages about the progress of the library (default=on).
Definition: ofxdump/cmdline.h:58
gengetopt_args_info::msg_status_help
const char * msg_status_help
Output status messages help description.
Definition: ofxdump/cmdline.h:61
gengetopt_args_info::msg_warning_flag
int msg_warning_flag
Output warning messages about abnormal conditions and unknown constructs (default=on).
Definition: ofxdump/cmdline.h:54
gengetopt_args_info::import_format_arg
char * import_format_arg
Force the file format of the file(s) specified (default=&#39;AUTODETECT&#39;).
Definition: ofxdump/cmdline.h:46
gengetopt_args_info::msg_warning_given
unsigned int msg_warning_given
Whether msg_warning was given.
Definition: ofxdump/cmdline.h:69
gengetopt_args_info
Where the command line options are stored.
Definition: ofxconnect/cmdline.h:42
gengetopt_args_info::msg_error_given
unsigned int msg_error_given
Whether msg_error was given.
Definition: ofxdump/cmdline.h:70
gengetopt_args_info::help_given
unsigned int help_given
Whether help was given.
Definition: ofxconnect/cmdline.h:91
gengetopt_args_info::msg_debug_given
unsigned int msg_debug_given
Whether msg_debug was given.
Definition: ofxdump/cmdline.h:68
gengetopt_args_info::msg_status_given
unsigned int msg_status_given
Whether msg_status was given.
Definition: ofxdump/cmdline.h:72
gengetopt_args_info::msg_parser_given
unsigned int msg_parser_given
Whether msg_parser was given.
Definition: ofxdump/cmdline.h:67
gengetopt_args_info::msg_debug_flag
int msg_debug_flag
Output messages meant for debugging (default=off).
Definition: ofxdump/cmdline.h:52
gengetopt_args_info::list_import_formats_given
unsigned int list_import_formats_given
Whether list-import-formats was given.
Definition: ofxdump/cmdline.h:66
gengetopt_args_info::msg_parser_help
const char * msg_parser_help
Output file parsing messages help description.
Definition: ofxdump/cmdline.h:51
cmdline_parser_params
The additional parameters to pass to parser functions.
Definition: ofxconnect/cmdline.h:120
gengetopt_args_info::list_import_formats_help
const char * list_import_formats_help
List available import file formats &#39;import-format&#39; command help description.
Definition: ofxdump/cmdline.h:49
gengetopt_args_info::import_format_given
unsigned int import_format_given
Whether import-format was given.
Definition: ofxdump/cmdline.h:65
gengetopt_args_info::version_help
const char * version_help
Print version and exit help description.
Definition: ofxconnect/cmdline.h:45
gengetopt_args_info::import_format_orig
char * import_format_orig
Force the file format of the file(s) specified original value given at command line.
Definition: ofxdump/cmdline.h:47
gengetopt_args_info::msg_error_help
const char * msg_error_help
Output error messages help description.
Definition: ofxdump/cmdline.h:57
gengetopt_args_info::import_format_help
const char * import_format_help
Force the file format of the file(s) specified help description.
Definition: ofxdump/cmdline.h:48
gengetopt_args_info::help_help
const char * help_help
Print help and exit help description.
Definition: ofxconnect/cmdline.h:44
gengetopt_args_info::msg_error_flag
int msg_error_flag
Output error messages (default=on).
Definition: ofxdump/cmdline.h:56
gengetopt_args_info::msg_debug_help
const char * msg_debug_help
Output messages meant for debugging help description.
Definition: ofxdump/cmdline.h:53
gengetopt_args_info::inputs_num
unsigned inputs_num
unamed options number
Definition: ofxconnect/cmdline.h:115
gengetopt_args_info::msg_status_flag
int msg_status_flag
Output status messages (default=on).
Definition: ofxdump/cmdline.h:60
gengetopt_args_info::msg_parser_flag
int msg_parser_flag
Output file parsing messages (default=off).
Definition: ofxdump/cmdline.h:50
gengetopt_args_info::msg_info_help
const char * msg_info_help
Output informational messages about the progress of the library help description. ...
Definition: ofxdump/cmdline.h:59
gengetopt_args_info::msg_info_given
unsigned int msg_info_given
Whether msg_info was given.
Definition: ofxdump/cmdline.h:71
gengetopt_args_info::inputs
char ** inputs
unamed options (options without names)
Definition: ofxconnect/cmdline.h:114
gengetopt_args_info::msg_warning_help
const char * msg_warning_help
Output warning messages about abnormal conditions and unknown constructs help description.
Definition: ofxdump/cmdline.h:55
gengetopt_args_info::version_given
unsigned int version_given
Whether version was given.
Definition: ofxconnect/cmdline.h:92