From: Antonio Alvarez Feijoo Date: Tue, 9 Jan 2024 08:05:50 +0000 (+0100) Subject: analyze: fix -q option X-Git-Tag: v256-rc1~1228^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c0e0bbb6b13d70500da79ce0270ed6da09327a0;p=thirdparty%2Fsystemd.git analyze: fix -q option Follow-up to 52117f5af831a816c47ceebb83c8244ee93b72fe --- diff --git a/man/systemd-analyze.xml b/man/systemd-analyze.xml index 41c0e45df63..3f6f4d3d9d5 100644 --- a/man/systemd-analyze.xml +++ b/man/systemd-analyze.xml @@ -1513,6 +1513,7 @@ x86-64 native + Suppress hints and other non-essential output. diff --git a/shell-completion/bash/systemd-analyze b/shell-completion/bash/systemd-analyze index d27a6422207..00cb478688d 100644 --- a/shell-completion/bash/systemd-analyze +++ b/shell-completion/bash/systemd-analyze @@ -61,7 +61,7 @@ _systemd_analyze() { local -A OPTS=( [STANDALONE]='-h --help --version --system --user --global --order --require --no-pager - --man=no --generators=yes --quiet' + --man=no --generators=yes -q --quiet' [ARG]='-H --host -M --machine --fuzz --from-pattern --to-pattern --root' ) diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index 6edc412e751..5f4d6634581 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -362,7 +362,7 @@ static int parse_argv(int argc, char *argv[]) { assert(argc >= 0); assert(argv); - while ((c = getopt_long(argc, argv, "hH:M:U:", options, NULL)) >= 0) + while ((c = getopt_long(argc, argv, "hH:M:U:q", options, NULL)) >= 0) switch (c) { case 'h':