2 * File automatically generated by
3 * gengen 1.2 by Lorenzo Bettini
4 * http://www.gnu.org/software/gengen
7 #include "handle_help.h"
10 handle_help_gen_class::generate_handle_help(ostream &stream, unsigned int indent)
12 string indent_str (indent, ' ');
17 stream << "if (strcmp (long_options[option_index].name, \"detailed-help\") == 0) {";
22 generate_string (parser_name, stream, indent + indent_str.length ());
23 stream << "_print_detailed_help ();";
32 stream << "if (strcmp (long_options[option_index].name, \"full-help\") == 0) {";
37 generate_string (parser_name, stream, indent + indent_str.length ());
38 stream << "_print_full_help ();";
47 stream << "case 'h': /* Print help and exit. */";
53 stream << "if (strcmp (long_options[option_index].name, \"help\") == 0) {";
58 generate_string (parser_name, stream, indent + indent_str.length ());
59 stream << "_print_help ();";
65 generate_string (parser_name, stream, indent + indent_str.length ());
66 stream << "_free (&local_args_info);";
69 stream << " exit (EXIT_SUCCESS);";
70 if (( full_help || ( ! short_opt ) ))