]> err.no Git - systemd/commitdiff
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 8b8fc45ea0d61f4ad7d5076788f7adc199fe47a9..bbb9dfc19a5d03277d7833ea329194af8ee7f700 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             }
         };