]> 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)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Tue, 13 May 2025 15:19:39 +0000 (17:19 +0200)
man/systemctl.xml
src/systemctl/systemctl.c

index aac17ae01acbab6479a81b43093927495b3e8932..ed0cafff8b485bc2e91312a6b16d9589ad911306 100644 (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>
index fdbde7dc5e771e1caf4b1e481a3ead85e9182d85..55fa386e7a47dce5e63b2be3d4515eab536e60ea 100644 (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;