]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
activate: reorder --help text
authorLennart Poettering <lennart@poettering.net>
Sun, 31 Jan 2016 22:54:14 +0000 (23:54 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 1 Feb 2016 21:18:15 +0000 (22:18 +0100)
Make sure the --help and --version options are mentioned first, like in all our other tools.

src/activate/activate.c

index 6709d9bb80ac1232a6c0197e570bf68ff6e72176..558d16824a80ed928651cb0ed97fbe6645323df7 100644 (file)
@@ -329,12 +329,12 @@ static void help(void) {
         printf("%s [OPTIONS...]\n\n"
                "Listen on sockets and launch child on connection.\n\n"
                "Options:\n"
-               "  -d --datagram            Datagram sockets\n"
+               "  -h --help                Show this help and exit\n"
+               "     --version             Print version string and exit\n"
                "  -l --listen=ADDR         Listen for raw connections at ADDR\n"
+               "  -d --datagram            Listen on datagram instead of stream socket\n"
                "  -a --accept              Spawn separate child for each connection\n"
-               "  -h --help                Show this help and exit\n"
                "  -E --setenv=NAME[=VALUE] Pass an environment variable to children\n"
-               "  --version                Print version string and exit\n"
                "\n"
                "Note: file descriptors from sd_listen_fds() will be passed through.\n"
                , program_invocation_short_name);