From 1d2e23ab72b15524ffc009e0553c4b8d08f073b8 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 13 Jul 2010 20:06:29 +0200 Subject: [PATCH] main: introduce -D as quick acess to debugging --- src/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 27ad4c4c..5af3587d 100644 --- a/src/main.c +++ b/src/main.c @@ -582,7 +582,7 @@ static int parse_argv(int argc, char *argv[]) { assert(argc >= 1); assert(argv); - while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0) + while ((c = getopt_long(argc, argv, "hD", options, NULL)) >= 0) switch (c) { @@ -715,6 +715,10 @@ static int parse_argv(int argc, char *argv[]) { arg_action = ACTION_HELP; break; + case 'D': + log_set_max_level(LOG_DEBUG); + break; + case '?': return -EINVAL; -- 2.39.5