]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
analyze: fix -q option
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Tue, 9 Jan 2024 08:05:50 +0000 (09:05 +0100)
committerAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Tue, 9 Jan 2024 08:05:50 +0000 (09:05 +0100)
Follow-up to 52117f5af831a816c47ceebb83c8244ee93b72fe

man/systemd-analyze.xml
shell-completion/bash/systemd-analyze
src/analyze/analyze.c

index 41c0e45df63198ee5fd9aa4ec2b11bcc94ab9997..3f6f4d3d9d53a2711671183935e30927dbeb0090 100644 (file)
@@ -1513,6 +1513,7 @@ x86-64      native</programlisting>
       <xi:include href="user-system-options.xml" xpointer="machine" />
 
       <varlistentry>
+        <term><option>-q</option></term>
         <term><option>--quiet</option></term>
 
         <listitem><para>Suppress hints and other non-essential output.</para>
index d27a6422207bea994e66a59c29b0b5ccc8aff14f..00cb478688d2ffcba22a853a9dae223118432b4f 100644 (file)
@@ -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'
     )
 
index 6edc412e751b75e6f47da06f7d39206b6d4242b8..5f4d6634581f31eadce730ec8aba1ca428b71b3c 100644 (file)
@@ -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':