--- trunk/OOPSE-4/src/applications/randomBuilder/randomBuilderCmd.c 2006/10/09 22:16:44 3035 +++ trunk/OOPSE-4/src/applications/randomBuilder/randomBuilderCmd.c 2006/10/10 02:44:13 3036 @@ -1,7 +1,7 @@ /* - File autogenerated by gengetopt version 2.15 + File autogenerated by gengetopt version 2.16 generated with the following command: - gengetopt --file-name=randomBuilderCmd --unamed-opts + gengetopt -F randomBuilderCmd --unamed-opts The developers of gengetopt consider the fixed text that goes in all gengetopt output files to be in the public domain: @@ -82,7 +82,7 @@ cmdline_parser_print_help (void) cmdline_parser_print_help (void) { cmdline_parser_print_version (); - printf("\nUsage: simpleBuilder [OPTIONS]... [FILES]...\n\n"); + printf("\nUsage: randomBuilder [OPTIONS]... [FILES]...\n\n"); printf("%s\n"," -h, --help Print help and exit"); printf("%s\n"," -V, --version Print version and exit"); printf("%s\n"," -o, --output=STRING Output file name"); @@ -360,6 +360,11 @@ cmdline_parser_required2 (struct gengetopt_args_info * { int error = 0; + if (! args_info->output_given) + { + fprintf (stderr, "%s: '--output' ('-o') option required%s\n", prog_name, (additional_error ? additional_error : "")); + error = 1; + } if (! args_info->density_given) { fprintf (stderr, "%s: '--density' option required%s\n", prog_name, (additional_error ? additional_error : "")); @@ -402,7 +407,7 @@ cmdline_parser_internal (int argc, char * const *argv, cmdline_parser_init (&local_args_info); optarg = 0; - optind = 1; + optind = 0; opterr = 1; optopt = '?';