QTfrontend/main.cpp
changeset 10407 012bb4b63117
parent 10405 469ce70ba163
child 10486 5e2d26bcafd6
--- a/QTfrontend/main.cpp	Mon Sep 08 18:12:13 2014 +0200
+++ b/QTfrontend/main.cpp	Mon Sep 08 18:53:34 2014 +0200
@@ -126,19 +126,23 @@
 QString getUsage()
 {
     return QString(
-"%1: hedgewars [%2...]\n"
+"%1: hedgewars [%2...] [%3]\n"
 "\n"
-"%3:\n"
-"  --help              %4\n"
-"  --config-dir=PATH   %5\n"
-"  --data-dir=PATH     %6\n"
+"%4:\n"
+"  --help              %5\n"
+"  --config-dir=PATH   %6\n"
+"  --data-dir=PATH     %7\n"
+"\n"
+"%8"
 "\n"
 ).arg(HWApplication::tr("Usage", "command-line"))
 .arg(HWApplication::tr("OPTION", "command-line"))
+.arg(HWApplication::tr("CONNECTSTRING", "command-line"))
 .arg(HWApplication::tr("Options", "command-line"))
 .arg(HWApplication::tr("Display this help", "command-line"))
 .arg(HWApplication::tr("Custom path for configuration data and user data", "command-line"))
-.arg(HWApplication::tr("Custom path to the game data folder", "command-line"));
+.arg(HWApplication::tr("Custom path to the game data folder", "command-line"))
+.arg(HWApplication::tr("Hedgewars can use a %1 (e.g. \"%2\") to connect on start.", "command-line").arg("CONNECTSTRING").arg(QString("hwplay://") + NETGAME_DEFAULT_SERVER));
 }
 
 int main(int argc, char *argv[])