From: Jörg Behrmann Date: Tue, 13 May 2025 15:19:39 +0000 (+0200) Subject: man, systemctl: document --what=help X-Git-Tag: v258-rc1~631^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=028de7292d6923c4b77c5d03d47097aeda24fc1d;p=thirdparty%2Fsystemd.git man, systemctl: document --what=help --- diff --git a/man/systemctl.xml b/man/systemctl.xml index aac17ae01ac..ed0cafff8b4 100644 --- a/man/systemctl.xml +++ b/man/systemctl.xml @@ -616,6 +616,10 @@ Jan 12 10:46:45 example.com bluetoothd[8900]: gatt-time-server: Input/output err all All of the above + + help + Show the supported values and exit + diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index fdbde7dc5e7..55fa386e7a4 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -958,7 +958,7 @@ static int systemctl_parse_argv(int argc, char *argv[]) { case ARG_WHAT: if (isempty(optarg)) - return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "--what= requires arguments."); + return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "--what= requires arguments (see --what=help)."); for (const char *p = optarg;;) { _cleanup_free_ char *k = NULL;