summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-09-28 13:29:03 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-09-28 15:09:34 -0400
commite16972e6265d5e9326ec21d7e90f715989f96548 (patch)
tree79fc657ed7cde9e80487ebd47c13f755dd4bad42 /man
parent978c8b6347d61f5a792886ef1875a4df625fd65f (diff)
systemctl: add --state=help
This mirrors --type=help and simplifies completion scripts. The array of states is dense, so the is no need to check if the string is null.
Diffstat (limited to 'man')
-rw-r--r--man/systemctl.xml12
1 files changed, 8 insertions, 4 deletions
diff --git a/man/systemctl.xml b/man/systemctl.xml
index c1359d1678..e8cd47339c 100644
--- a/man/systemctl.xml
+++ b/man/systemctl.xml
@@ -101,10 +101,14 @@
<term><option>--state=</option></term>
<listitem>
- <para>The argument should be a comma-separated list of unit
- LOAD, SUB, or ACTIVE states. When listing units, show only
- those in specified states. Use <option>--state=failed</option>
- to show only failed units.</para>
+ <para>The argument should be a comma-separated list of unit
+ LOAD, SUB, or ACTIVE states. When listing units, show only
+ those in specified states. Use <option>--state=failed</option>
+ to show only failed units.</para>
+
+ <para>As a special case, if one of the arguments is
+ <option>help</option>, a list of allowed values will be
+ printed and the program will exit.</para>
</listitem>
</varlistentry>