2aacef
From 282bb5b70e6ff146ba81fea82d85d1e3f0cebc77 Mon Sep 17 00:00:00 2001
2aacef
From: Yu Watanabe <watanabe.yu+github@gmail.com>
2aacef
Date: Tue, 13 Dec 2022 09:05:11 +0900
2aacef
Subject: [PATCH] shell-completion: systemctl: add --no-warn
2aacef
2aacef
(cherry picked from commit 93b0ec8bc533e8e8245560152c57e9c5dfb906bf)
2aacef
2aacef
Related: #2141979
2aacef
---
2aacef
 shell-completion/bash/systemctl.in | 2 +-
2aacef
 shell-completion/zsh/_systemctl.in | 1 +
2aacef
 2 files changed, 2 insertions(+), 1 deletion(-)
2aacef
2aacef
diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in
2aacef
index f935960c77..3c64467e2f 100644
2aacef
--- a/shell-completion/bash/systemctl.in
2aacef
+++ b/shell-completion/bash/systemctl.in
2aacef
@@ -128,7 +128,7 @@ _systemctl () {
2aacef
         [STANDALONE]='--all -a --reverse --after --before --defaults --force -f --full -l --global
2aacef
                              --help -h --no-ask-password --no-block --legend=no --no-pager --no-reload --no-wall --now
2aacef
                              --quiet -q --system --user --version --runtime --recursive -r --firmware-setup
2aacef
-                             --show-types --plain --failed --value --fail --dry-run --wait'
2aacef
+                             --show-types --plain --failed --value --fail --dry-run --wait --no-warn'
2aacef
         [ARG]='--host -H --kill-whom --property -p --signal -s --type -t --state --job-mode --root
2aacef
                              --preset-mode -n --lines -o --output -M --machine --message --timestamp --check-inhibitors'
2aacef
     )
2aacef
diff --git a/shell-completion/zsh/_systemctl.in b/shell-completion/zsh/_systemctl.in
2aacef
index d471743030..2811582236 100644
2aacef
--- a/shell-completion/zsh/_systemctl.in
2aacef
+++ b/shell-completion/zsh/_systemctl.in
2aacef
@@ -480,6 +480,7 @@ _arguments -s \
2aacef
     '--show-types[When showing sockets, show socket type]' \
2aacef
     '--check-inhibitors[Specify if inhibitors should be checked]:mode:_systemctl_check_inhibitors' \
2aacef
     {-q,--quiet}'[Suppress output]' \
2aacef
+    '--no-warn[Suppress several warnings shown by default]' \
2aacef
     '--no-block[Do not wait until operation finished]' \
2aacef
     '--legend=no[Do not print a legend, i.e. the column headers and the footer with hints]' \
2aacef
     '--no-pager[Do not pipe output into a pager]' \