cgls: convert to VERB_COMMAND and add --introspect-cli

The custom help() is replaced by a COMMAND() description, and
--introspect-cli is added. --help now goes through the pager, like other
commands with --no-pager.

Synopses are adjusted. --user-unit/--unit without any unit names is
technically allowed, but not very meaningful, since it's the same as
the default mode. So [] is dropped. And the prog help string is then
adjusted to match the man page.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-08-15 15:28:58 +02:00
parent 73d0a3a2ea
commit d768cdcceb
3 changed files with 15 additions and 31 deletions
+1 -1
View File
@@ -31,7 +31,7 @@
<command>systemd-cgls</command>
<arg choice="opt" rep="repeat">OPTIONS</arg>
<arg choice="plain"><option>--unit</option>|<option>--user-unit</option></arg>
<arg choice="opt" rep="repeat">UNIT</arg>
<arg choice="plain" rep="repeat">UNIT</arg>
</cmdsynopsis>
</refsynopsisdiv>