From 4a434023d2380ef04492ae3ca41781738ba4d133 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Thu, 24 Oct 2019 17:40:05 +0800 Subject: [PATCH] machine-id-setup: avoid unexpected aborting Code should not be reached 'Unhandled option' at src/machine-id-setup/machine-id-setup-main.c:97, function parse_argv(). Aborting. Aborted This behaviour is not good and will confuse user. Signed-off-by: Chen Qi --- src/machine-id-setup/machine-id-setup-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/machine-id-setup/machine-id-setup-main.c b/src/machine-id-setup/machine-id-setup-main.c index 1b575d77251..872b00c158e 100644 --- a/src/machine-id-setup/machine-id-setup-main.c +++ b/src/machine-id-setup/machine-id-setup-main.c @@ -66,7 +66,7 @@ static int parse_argv(int argc, char *argv[]) { assert(argc >= 0); assert(argv); - while ((c = getopt_long(argc, argv, "hqcv", options, NULL)) >= 0) + while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0) switch (c) {