/[bison]/bison/src/getargs.c
ViewVC logotype

Diff of /bison/src/getargs.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.44 by eggert, Mon Oct 21 18:15:13 2002 UTC revision 1.45 by eggert, Tue Oct 22 05:06:21 2002 UTC
# Line 155  report_argmatch (char *args) Line 155  report_argmatch (char *args)
155  | Display the help message and exit STATUS.  |  | Display the help message and exit STATUS.  |
156  `-------------------------------------------*/  `-------------------------------------------*/
157    
158    static void usage (int) ATTRIBUTE_NORETURN;
159    
160  static void  static void
161  usage (int status)  usage (int status)
162  {  {
# Line 337  getargs (int argc, char *argv[]) Line 339  getargs (int argc, char *argv[])
339          break;          break;
340    
341        case 'h':        case 'h':
342          usage (0);          usage (EXIT_SUCCESS);
343    
344        case 'V':        case 'V':
345          version ();          version ();
346          exit (0);          exit (EXIT_SUCCESS);
347    
348        case 'g':        case 'g':
349          /* Here, the -g and --graph=FILE options are differentiated.  */          /* Here, the -g and --graph=FILE options are differentiated.  */
# Line 405  getargs (int argc, char *argv[]) Line 407  getargs (int argc, char *argv[])
407          break;          break;
408    
409        default:        default:
410          fprintf (stderr, _("Try `%s --help' for more information.\n"),          usage (EXIT_FAILURE);
                  program_name);  
         exit (1);  
411        }        }
412    
413    if (argc - optind != 1)    if (argc - optind != 1)

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26