chiark / gitweb /
main: introduce -D as quick acess to debugging
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Jul 2010 18:06:29 +0000 (20:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 13 Jul 2010 18:06:33 +0000 (20:06 +0200)
src/main.c

index 27ad4c4..5af3587 100644 (file)
@@ -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;