diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-02-15 10:56:28 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-02-17 21:09:14 +0100 |
commit | 6906da26926365b6b8c06cd81f1dac4f49288041 (patch) | |
tree | a65b20efd83184d3779e179469f698aa88efc7fa /src/systemctl/systemctl.h | |
parent | b01031e3ff937e0ceff70aae58253bb22b5a05f4 (diff) | |
download | systemd-6906da26926365b6b8c06cd81f1dac4f49288041.tar.gz |
systemctl: hide legends with --quiet, allow overriding
--no-legend is replaced by --legend=no.
--quiet now implies --legend=no, but --legend=yes may be used to override that.
--quiet controls hints and warnings and such, and --legend controls just the
legends. I think it makes sense to allow both to controlled independently, in
particular --quiet --legend makes sense when using systemctl in a script to
provide some user-visible output.
Fixes #18560.
Diffstat (limited to 'src/systemctl/systemctl.h')
-rw-r--r-- | src/systemctl/systemctl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.h b/src/systemctl/systemctl.h index 0ebe4580c6..de463db9d5 100644 --- a/src/systemctl/systemctl.h +++ b/src/systemctl/systemctl.h @@ -52,7 +52,7 @@ extern const char *arg_job_mode; extern UnitFileScope arg_scope; extern bool arg_wait; extern bool arg_no_block; -extern bool arg_no_legend; +extern int arg_legend; extern PagerFlags arg_pager_flags; extern bool arg_no_wtmp; extern bool arg_no_sync; |