ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/applications/randomBuilder/randomBuilderCmd.c
(Generate patch)

Comparing trunk/OOPSE-4/src/applications/randomBuilder/randomBuilderCmd.c (file contents):
Revision 3035 by chuckv, Tue Apr 25 22:59:27 2006 UTC vs.
Revision 3036 by gezelter, Tue Oct 10 02:44:13 2006 UTC

# Line 1 | Line 1
1   /*
2 <  File autogenerated by gengetopt version 2.15
2 >  File autogenerated by gengetopt version 2.16
3    generated with the following command:
4 <  gengetopt --file-name=randomBuilderCmd --unamed-opts
4 >  gengetopt -F randomBuilderCmd --unamed-opts
5  
6    The developers of gengetopt consider the fixed text that goes in all
7    gengetopt output files to be in the public domain:
# Line 82 | Line 82 | cmdline_parser_print_help (void)
82   cmdline_parser_print_help (void)
83   {
84    cmdline_parser_print_version ();
85 <  printf("\nUsage: simpleBuilder [OPTIONS]... [FILES]...\n\n");
85 >  printf("\nUsage: randomBuilder [OPTIONS]... [FILES]...\n\n");
86    printf("%s\n","  -h, --help                Print help and exit");
87    printf("%s\n","  -V, --version             Print version and exit");
88    printf("%s\n","  -o, --output=STRING       Output file name");
# Line 360 | Line 360 | cmdline_parser_required2 (struct gengetopt_args_info *
360   {
361    int error = 0;
362  
363 +  if (! args_info->output_given)
364 +    {
365 +      fprintf (stderr, "%s: '--output' ('-o') option required%s\n", prog_name, (additional_error ? additional_error : ""));
366 +      error = 1;
367 +    }
368    if (! args_info->density_given)
369      {
370        fprintf (stderr, "%s: '--density' option required%s\n", prog_name, (additional_error ? additional_error : ""));
# Line 402 | Line 407 | cmdline_parser_internal (int argc, char * const *argv,
407    cmdline_parser_init (&local_args_info);
408  
409    optarg = 0;
410 <  optind = 1;
410 >  optind = 0;
411    opterr = 1;
412    optopt = '?';
413  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines