From 19a39c89acf5c84ec2bc4a5253551dba517144a9 Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Tue, 3 Jun 2014 22:40:21 +0300 Subject: [PATCH] daemon: stop listing debug sites. --- src/daemon/config.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/daemon/config.c b/src/daemon/config.c index c3794a1..7691e2a 100644 --- a/src/daemon/config.c +++ b/src/daemon/config.c @@ -229,7 +229,7 @@ static void config_set_defaults(mrp_context_t *ctx, char *argv0) void mrp_parse_cmdline(mrp_context_t *ctx, int argc, char **argv, char **envp) { -# define OPTIONS "c:C:l:t:fP:a:vd:DhHqB:I:E:w:i:e:RpV" +# define OPTIONS "c:C:l:t:fP:a:vd:hHqB:I:E:w:i:e:RpV" struct option options[] = { { "config-file" , required_argument, NULL, 'c' }, { "config-dir" , required_argument, NULL, 'C' }, @@ -238,7 +238,6 @@ void mrp_parse_cmdline(mrp_context_t *ctx, int argc, char **argv, char **envp) { "log-target" , required_argument, NULL, 't' }, { "verbose" , optional_argument, NULL, 'v' }, { "debug" , required_argument, NULL, 'd' }, - { "list-debug" , no_argument , NULL, 'D' }, { "foreground" , no_argument , NULL, 'f' }, { "help" , no_argument , NULL, 'h' }, { "more-help" , no_argument , NULL, 'H' }, @@ -326,13 +325,6 @@ void mrp_parse_cmdline(mrp_context_t *ctx, int argc, char **argv, char **envp) mrp_debug_enable(TRUE); break; - case 'D': - SAVE_OPT("-D"); - printf("Known debug sites:\n"); - mrp_debug_dump_sites(stdout, 4); - exit(0); - break; - case 'f': SAVE_OPT("-f"); ctx->foreground = TRUE; -- 2.7.4