]> git.ipfire.org Git - thirdparty/systemd.git/commit
analyze: convert to OPTION and VERB macros 41945/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Mon, 4 May 2026 06:00:32 +0000 (08:00 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Tue, 5 May 2026 09:17:49 +0000 (11:17 +0200)
commit10b97bbb98b7e3eb472d683d10f84b468bf6c624
treeae74b049ffdc69ec91528e3bb6dae4700b6e4e29
parentf8c0aaccef5388c6454f0a0b0a34a826bc882c25
analyze: convert to OPTION and VERB macros

The logic that was tested in the previous commit is used to implement
the behaviour for unit-shell and other verbs without changes.

The compare-versions synopsis is shortened to "V1 [OP] V2" to make the
verb synopsis fit. Unusual capitalizaition of "Command" is changed to
"COMMAND" (it's a replace arg, not a fixed string), and some help
strings are adjusted. The order of options in --help is based on the
existing order in parse_argv(). The old order in --help was mostly
random. I think it might be good to figure out something more rational
here, but I'm leaving that as a separate step.

The urlification of dot(1) in the --help string is lost. It's hard to
do this with the help string being stored in a read-only section.
I think this is not worth the trouble to reimplement in the current
scheme.
man/systemd-analyze.xml
src/analyze/analyze.c