2 * File automatically generated by
3 * gengen 1.2 by Lorenzo Bettini
4 * http://www.gnu.org/software/gengen
7 #include "group_option.h"
10 group_option_gen_class::generate_group_option(ostream &stream, unsigned int indent)
12 string indent_str (indent, ' ');
15 stream << "if (args_info->";
16 generate_string (group_var_name, stream, indent + indent_str.length ());
17 stream << "_group_counter ";
18 generate_string (Comparison_rule, stream, indent + indent_str.length ());
25 stream << " fprintf (stderr, \"%s: %d options of group ";
26 generate_string (group_name, stream, indent + indent_str.length ());
27 stream << " were given. ";
28 generate_string (number_required, stream, indent + indent_str.length ());
29 stream << " is required%s.\\n\", ";
30 generate_string (package_var_name, stream, indent + indent_str.length ());
31 stream << ", args_info->";
32 generate_string (group_var_name, stream, indent + indent_str.length ());
33 stream << "_group_counter, (additional_error ? additional_error : \"\"));";
36 stream << " error = 1;";