]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
socket-activate: normalize COMMAND notation in help text + man 37967/head
authorMike Yuan <me@yhndnzj.com>
Wed, 25 Jun 2025 11:32:19 +0000 (13:32 +0200)
committerMike Yuan <me@yhndnzj.com>
Wed, 25 Jun 2025 11:34:41 +0000 (13:34 +0200)
man/systemd-socket-activate.xml
src/socket-activate/socket-activate.c

index 09f0d5cad609804af966d282755644b5d16fa2f9..ac9deaf4b7538ea8f5eb81867cc09105f9e74aea 100644 (file)
@@ -25,8 +25,9 @@
     <cmdsynopsis>
       <command>systemd-socket-activate</command>
       <arg choice="opt" rep="repeat">OPTIONS</arg>
-      <arg choice="plain"><replaceable>daemon</replaceable></arg>
-      <arg choice="opt" rep="repeat">OPTIONS</arg>
+      <arg choice="plain"><replaceable>COMMAND</replaceable>
+      <arg choice="opt" rep="repeat">ARGS</arg>
+      </arg>
     </cmdsynopsis>
   </refsynopsisdiv>
 
index a80080b9cd060a933426896a91a28b8233cce9c3..d4b584e4d3827ba9016dfb6e3c7b139f38a115f3 100644 (file)
@@ -316,7 +316,7 @@ static int help(void) {
         if (r < 0)
                 return log_oom();
 
-        printf("%s [OPTIONS...]\n"
+        printf("%s [OPTIONS...] COMMAND ...\n"
                "\n%sListen on sockets and launch child on connection.%s\n"
                "\nOptions:\n"
                "  -h --help                  Show this help and exit\n"