chiark / gitweb /
systemd-detect-virt: fix "option '--quiet' requires an argument"
authorKay Sievers <kay@vrfy.org>
Mon, 4 Jun 2012 10:39:22 +0000 (12:39 +0200)
committerKay Sievers <kay@vrfy.org>
Mon, 4 Jun 2012 10:39:22 +0000 (12:39 +0200)
https://bugs.freedesktop.org/show_bug.cgi?id=50671

src/detect-virt/detect-virt.c

index 8b8fc45..bbb9dfc 100644 (file)
@@ -61,7 +61,7 @@ static int parse_argv(int argc, char *argv[]) {
                 { "version",   no_argument,       NULL, ARG_VERSION   },
                 { "container", no_argument,       NULL, 'c'           },
                 { "vm",        optional_argument, NULL, 'v'           },
-                { "quiet",     required_argument, NULL, 'q'           },
+                { "quiet",     no_argument,       NULL, 'q'           },
                 { NULL,        0,                 NULL, 0             }
         };