30
30
const char *gengetopt_args_info_usage = "Usage: " CMDLINE_PARSER_PACKAGE " [OPTIONS]...";
32
const char *gengetopt_args_info_versiontext = "";
32
34
const char *gengetopt_args_info_description = "";
34
36
const char *gengetopt_args_info_detailed_help[] = {
35
37
" -h, --help Print help and exit",
36
" --detailed-help Print help, including all details and hidden \n options, and exit",
38
" --detailed-help Print help, including all details and hidden\n options, and exit",
37
39
" -V, --version Print version and exit",
40
42
" -i, --input=filename input file (default std input)",
41
" -f, --func-name=name name of generated function \n (default=`cmdline_parser')",
42
" -a, --arg-struct-name=name name of generated args info struct \n (default=`gengetopt_args_info')",
43
" -f, --func-name=name name of generated function\n (default=`cmdline_parser')",
44
" -a, --arg-struct-name=name name of generated args info struct\n (default=`gengetopt_args_info')",
43
45
" -F, --file-name=name name of generated file (default=`cmdline')",
44
46
" --output-dir=path output directory",
45
" \n if this option is not specified, the files are generated in the current \n directory.\n",
47
" \n if this option is not specified, the files are generated in the current\n directory.\n",
46
48
" --header-output-dir=path header output directory",
47
49
" --src-output-dir=path source output directory",
48
50
" -c, --c-extension=ext extension of c file (default=`c')",
49
51
" -H, --header-extension=ext extension of header file (default=`h')",
50
52
" -l, --long-help long usage line in help",
51
53
" \n The usage line will print all the options, e.g.,\n\n sample1 -iINT|--int-opt=INT [-h|--help]\n",
52
" --default-optional by default, an option is considered optional if \n not specified otherwise",
53
" -u, --unamed-opts[=STRING] accept options without names (e.g., file names) \n (default=`FILES')",
54
"\nThe parser generated is thought to be used to parse the command line arguments. \nHowever, you can also generate parsers for configuration files, or strings that \ncontain the arguments to parse, by using the following two options.\n",
54
" --default-optional by default, an option is considered optional if\n not specified otherwise",
55
" -u, --unamed-opts[=STRING] accept options without names (e.g., file names)\n (default=`FILES')",
56
"\nThe parser generated is thought to be used to parse the command line arguments.\nHowever, you can also generate parsers for configuration files, or strings that\ncontain the arguments to parse, by using the following two options.\n",
55
57
" -C, --conf-parser generate a config file parser",
56
" -S, --string-parser generate a string parser (the string contains \n the command line)",
58
" -S, --string-parser generate a string parser (the string contains\n the command line)",
58
59
"\nAdditional options:",
59
" -G, --include-getopt adds the code for getopt_long in the generated \n C file",
60
" -G, --include-getopt adds the code for getopt_long in the generated\n C file",
60
61
" -n, --no-handle-help do not handle --help|-h automatically",
61
" \n If --no-handle-help is specified, the command line option --help|-h will not \n be handled automatically, so the programmer will be able to print some other \n information; then the function for printing the standard help output can be \n used; this function is called <parser-name>_print_help.\n\n Notice that, although the programmer can handle --help|-h manually, the \n parser will return after finding such option: the other command line options, \n if any, will be ignored. In case you want to have full control on --help|-h, \n you should use --ho-help.\n",
62
" \n If --no-handle-help is specified, the command line option --help|-h will not\n be handled automatically, so the programmer will be able to print some other\n information; then the function for printing the standard help output can be\n used; this function is called <parser-name>_print_help.\n\n Notice that, although the programmer can handle --help|-h manually, the\n parser will return after finding such option: the other command line options,\n if any, will be ignored. In case you want to have full control on --help|-h,\n you should use --ho-help.\n",
62
63
" --no-help do not add --help|-h automatically",
63
" \n With this option you can disable the automatic addition of options --help|-h. \n The programmer will then be able to add this option in the input file and \n handle it as he sees fit. Notice that --no-help will also disable the \n automatic options --detailed-help and --full-help.\n\n The programmer can still define options with short character h as he wants, \n but he cannot define options help, unless he specifies --no-help (otherwise \n an error will be printed).\n",
64
" \n With this option you can disable the automatic addition of options --help|-h.\n The programmer will then be able to add this option in the input file and\n handle it as he sees fit. Notice that --no-help will also disable the\n automatic options --detailed-help and --full-help.\n\n The programmer can still define options with short character h as he wants,\n but he cannot define options help, unless he specifies --no-help (otherwise\n an error will be printed).\n",
64
65
" -N, --no-handle-version do not handle --version|-V automatically",
65
66
" --no-version do not add --version|-V automatically",
66
67
" \n See above the details about --no-handle-help and --no-help, respectively.\n",
67
68
" -e, --no-handle-error do not exit on errors",
68
" \n With this option, if the generated parser encounters an error (e.g., an \n unknown option) it does not make the main program exit; instead, the parser \n function returns a value different 0, and the main program can print a help \n message.\n",
69
" --show-required[=STRING] in the output of help will specify which \n options are mandatory, by using the optional \n passed string (default=`(mandatory)')",
70
" -g, --gen-version put gengetopt version in the generated file \n (default=on)",
71
" --set-package=STRING set the package name (override package defined \n in the .ggo file)",
72
" --set-version=STRING set the version number (override version \n defined in the .ggo file)",
73
" --show-help show the output of --help instead of generating \n code",
74
" --show-full-help show the output of --full-help (i.e., including \n hidden options) instead of generating code",
75
" --show-detailed-help show the output of --detailed-help (i.e., \n including details and hidden options) instead \n of generating code",
76
" --show-version show the output of --version instead of \n generating code",
69
" \n With this option, if the generated parser encounters an error (e.g., an\n unknown option) it does not make the main program exit; instead, the parser\n function returns a value different 0, and the main program can print a help\n message.\n",
70
" --show-required[=STRING] in the output of help will specify which\n options are mandatory, by using the optional\n passed string (default=`(mandatory)')",
71
" --strict-hidden completely hide hidden options",
72
" -g, --gen-version put gengetopt version in the generated file\n (default=on)",
73
" --set-package=STRING set the package name (override package defined\n in the .ggo file)",
74
" --set-version=STRING set the version number (override version\n defined in the .ggo file)",
75
" --show-help show the output of --help instead of generating\n code",
76
" --show-full-help show the output of --full-help (i.e., including\n hidden options) instead of generating code",
77
" --show-detailed-help show the output of --detailed-help (i.e.,\n including details and hidden options) instead\n of generating code",
78
" --show-version show the output of --version instead of\n generating code",
77
79
"\nPlease refer to the info manual for further explanations.",