Changeset a2a8833


Ignore:
Timestamp:
Mar 25, 2011, 3:33:29 AM (13 years ago)
Author:
David Benjamin <davidben@mit.edu>
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)
Message:
Kill --remove-debug option

It doesn't do anything sensible anymore. It also ignores the debug_file
variable.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    rc809f5e ra2a8833  
    4141  char *confdir;
    4242  bool debug;
    43   bool rm_debug;
    4443} owl_options;
    4544
     
    5049  fprintf(stderr, "  -n,--no-subs        don't load zephyr subscriptions\n");
    5150  fprintf(stderr, "  -d,--debug          enable debugging\n");
    52   fprintf(stderr, "  -D,--remove-debug   enable debugging and delete previous debug file\n");
    5351  fprintf(stderr, "  -v,--version        print the Barnowl version number and exit\n");
    5452  fprintf(stderr, "  -h,--help           print this help message\n");
     
    6664    { "tty",             1, 0, 't' },
    6765    { "debug",           0, 0, 'd' },
    68     { "remove-debug",    0, 0, 'D' },
    6966    { "version",         0, 0, 'v' },
    7067    { "help",            0, 0, 'h' },
     
    8885      opts->tty = g_strdup(optarg);
    8986      break;
    90     case 'D':
    91       opts->rm_debug = 1;
    92       /* fallthrough */
    9387    case 'd':
    9488      opts->debug = 1;
     
    492486  /* owl global init */
    493487  owl_global_init(&g);
    494   if (opts.rm_debug) unlink(OWL_DEBUG_FILE);
    495488  if (opts.debug) owl_global_set_debug_on(&g);
    496489  if (opts.confdir) owl_global_set_confdir(&g, opts.confdir);
Note: See TracChangeset for help on using the changeset viewer.