1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-30 10:50:15 +03:00

analyze: fix -q option

Follow-up to 52117f5af831a816c47ceebb83c8244ee93b72fe
This commit is contained in:
Antonio Alvarez Feijoo 2024-01-09 09:05:50 +01:00
parent d7d6195953
commit 7c0e0bbb6b
No known key found for this signature in database
GPG Key ID: B4EFC9173666A622
3 changed files with 3 additions and 2 deletions

View 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>

View 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'
)

View 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':