- Timestamp:
- Mar 25, 2011, 3:33:29 AM (14 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- 779bd3d
- Parents:
- 1a30f05
- git-author:
- David Benjamin <davidben@mit.edu> (03/25/11 03:32:02)
- git-committer:
- David Benjamin <davidben@mit.edu> (03/25/11 03:33:29)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
owl.c
rc809f5e ra2a8833 41 41 char *confdir; 42 42 bool debug; 43 bool rm_debug;44 43 } owl_options; 45 44 … … 50 49 fprintf(stderr, " -n,--no-subs don't load zephyr subscriptions\n"); 51 50 fprintf(stderr, " -d,--debug enable debugging\n"); 52 fprintf(stderr, " -D,--remove-debug enable debugging and delete previous debug file\n");53 51 fprintf(stderr, " -v,--version print the Barnowl version number and exit\n"); 54 52 fprintf(stderr, " -h,--help print this help message\n"); … … 66 64 { "tty", 1, 0, 't' }, 67 65 { "debug", 0, 0, 'd' }, 68 { "remove-debug", 0, 0, 'D' },69 66 { "version", 0, 0, 'v' }, 70 67 { "help", 0, 0, 'h' }, … … 88 85 opts->tty = g_strdup(optarg); 89 86 break; 90 case 'D':91 opts->rm_debug = 1;92 /* fallthrough */93 87 case 'd': 94 88 opts->debug = 1; … … 492 486 /* owl global init */ 493 487 owl_global_init(&g); 494 if (opts.rm_debug) unlink(OWL_DEBUG_FILE);495 488 if (opts.debug) owl_global_set_debug_on(&g); 496 489 if (opts.confdir) owl_global_set_confdir(&g, opts.confdir);
Note: See TracChangeset
for help on using the changeset viewer.