Changes in owl.c [499224d:e5210c9]
Legend:
- Unmodified
- Added
- Removed
-
owl.c
r499224d re5210c9 34 34 } owl_options; 35 35 36 void usage( FILE *file)36 void usage(void) 37 37 { 38 fprintf( file, "Barnowl version %s\n", OWL_VERSION_STRING);39 fprintf( file, "Usage: barnowl [-n] [-d] [-D] [-v] [-h] [-c <configfile>] [-s <confdir>] [-t <ttyname>]\n");40 fprintf( file, " -n,--no-subs don't load zephyr subscriptions\n");41 fprintf( file, " -d,--debug enable debugging\n");42 fprintf( file, " -v,--version print the Barnowl version number and exit\n");43 fprintf( file, " -h,--help print this help message\n");44 fprintf( file, " -s,--config-dir specify an alternate config dir (default ~/.owl)\n");45 fprintf( file, " -c,--config-file specify an alternate config file (default ~/.owl/init.pl)\n");46 fprintf( file, " -t,--tty set the tty name\n");38 fprintf(stderr, "Barnowl version %s\n", OWL_VERSION_STRING); 39 fprintf(stderr, "Usage: barnowl [-n] [-d] [-D] [-v] [-h] [-c <configfile>] [-s <confdir>] [-t <ttyname>]\n"); 40 fprintf(stderr, " -n,--no-subs don't load zephyr subscriptions\n"); 41 fprintf(stderr, " -d,--debug enable debugging\n"); 42 fprintf(stderr, " -v,--version print the Barnowl version number and exit\n"); 43 fprintf(stderr, " -h,--help print this help message\n"); 44 fprintf(stderr, " -s,--config-dir specify an alternate config dir (default ~/.owl)\n"); 45 fprintf(stderr, " -c,--config-file specify an alternate config file (default ~/.owl/init.pl)\n"); 46 fprintf(stderr, " -t,--tty set the tty name\n"); 47 47 } 48 48 … … 83 83 exit(0); 84 84 case 'h': 85 usage(stdout);86 exit(0);87 85 default: 88 usage( stderr);86 usage(); 89 87 exit(1); 90 88 }
Note: See TracChangeset
for help on using the changeset viewer.