]> jfr.im git - irc/evilnet/znc.git/commitdiff
cli: help: sort arguments alphabetically (#1367)
authorJos Ahrens <redacted>
Sat, 21 Jan 2017 15:36:12 +0000 (16:36 +0100)
committerAlexey Sokolov <redacted>
Sat, 21 Jan 2017 15:36:12 +0000 (15:36 +0000)
Changes the output of `znc --help` to order the arguments
in alphabetical order.

src/main.cpp

index a52033b7b48e229d142d7e7208b7ae044fdedaf1..273f421e38e840ea285c5bdde89e811440dac791 100644 (file)
@@ -135,24 +135,24 @@ static void GenerateHelp(const char* appname) {
         "\t-h, --help         List available command line options (this page)");
     CUtils::PrintMessage(
         "\t-v, --version      Output version information and exit");
-    CUtils::PrintMessage("\t-f, --foreground   Don't fork into the background");
-    CUtils::PrintMessage(
-        "\t-D, --debug        Output debugging information (Implies -f)");
     CUtils::PrintMessage(
-        "\t-n, --no-color     Don't use escape sequences in the output");
+        "\t-c, --makeconf     Interactively create a new config");
     CUtils::PrintMessage(
-        "\t-r, --allow-root   Don't complain if ZNC is run as root");
+        "\t-d, --datadir      Set a different ZNC repository (default is "
+        "~/.znc)");
     CUtils::PrintMessage(
-        "\t-c, --makeconf     Interactively create a new config");
+        "\t-D, --debug        Output debugging information (Implies -f)");
+    CUtils::PrintMessage("\t-f, --foreground   Don't fork into the background");
     CUtils::PrintMessage(
-        "\t-s, --makepass     Generates a password for use in config");
+        "\t-n, --no-color     Don't use escape sequences in the output");
 #ifdef HAVE_LIBSSL
     CUtils::PrintMessage(
         "\t-p, --makepem      Generates a pemfile for use with SSL");
 #endif /* HAVE_LIBSSL */
     CUtils::PrintMessage(
-        "\t-d, --datadir      Set a different ZNC repository (default is "
-        "~/.znc)");
+        "\t-r, --allow-root   Don't complain if ZNC is run as root");
+    CUtils::PrintMessage(
+        "\t-s, --makepass     Generates a password for use in config");
 }
 
 class CSignalHandler {