man, systemctl: document --what=help

This commit is contained in:
Jörg Behrmann
2025-05-13 17:19:39 +02:00
parent 5689365a90
commit 028de7292d
2 changed files with 5 additions and 1 deletions

View File

@@ -616,6 +616,10 @@ Jan 12 10:46:45 example.com bluetoothd[8900]: gatt-time-server: Input/output err
<entry><literal>all</literal></entry>
<entry>All of the above</entry>
</row>
<row>
<entry><literal>help</literal></entry>
<entry>Show the supported values and exit</entry>
</row>
</tbody>
</tgroup>
</table>

View File

@@ -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;