]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man, systemctl: document --what=help
authorJörg Behrmann <behrmann@physik.fu-berlin.de>
Tue, 13 May 2025 15:19:39 +0000 (17:19 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 17 May 2025 11:43:20 +0000 (12:43 +0100)
(cherry picked from commit 028de7292d6923c4b77c5d03d47097aeda24fc1d)
(cherry picked from commit d865854eae9d11e755f5f12e043d5e741c4a1fe1)

man/systemctl.xml
src/systemctl/systemctl.c

index 5012b37d84107bc60233f6e701589316637f2e76..21c0084328d6285ee29b7455414e22bca8aa84ec 100644 (file)
@@ -615,6 +615,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>
index 97bdfadab554942bf59007bd0e20bb23d2a00c8b..9cc67cd07ecb0397bcd024a9a536db010f384a90 100644 (file)
@@ -956,7 +956,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;