QTfrontend/main.cpp
changeset 10407 012bb4b63117
parent 10405 469ce70ba163
child 10486 5e2d26bcafd6
equal deleted inserted replaced
10405:469ce70ba163 10407:012bb4b63117
   124 }
   124 }
   125 
   125 
   126 QString getUsage()
   126 QString getUsage()
   127 {
   127 {
   128     return QString(
   128     return QString(
   129 "%1: hedgewars [%2...]\n"
   129 "%1: hedgewars [%2...] [%3]\n"
   130 "\n"
   130 "\n"
   131 "%3:\n"
   131 "%4:\n"
   132 "  --help              %4\n"
   132 "  --help              %5\n"
   133 "  --config-dir=PATH   %5\n"
   133 "  --config-dir=PATH   %6\n"
   134 "  --data-dir=PATH     %6\n"
   134 "  --data-dir=PATH     %7\n"
       
   135 "\n"
       
   136 "%8"
   135 "\n"
   137 "\n"
   136 ).arg(HWApplication::tr("Usage", "command-line"))
   138 ).arg(HWApplication::tr("Usage", "command-line"))
   137 .arg(HWApplication::tr("OPTION", "command-line"))
   139 .arg(HWApplication::tr("OPTION", "command-line"))
       
   140 .arg(HWApplication::tr("CONNECTSTRING", "command-line"))
   138 .arg(HWApplication::tr("Options", "command-line"))
   141 .arg(HWApplication::tr("Options", "command-line"))
   139 .arg(HWApplication::tr("Display this help", "command-line"))
   142 .arg(HWApplication::tr("Display this help", "command-line"))
   140 .arg(HWApplication::tr("Custom path for configuration data and user data", "command-line"))
   143 .arg(HWApplication::tr("Custom path for configuration data and user data", "command-line"))
   141 .arg(HWApplication::tr("Custom path to the game data folder", "command-line"));
   144 .arg(HWApplication::tr("Custom path to the game data folder", "command-line"))
       
   145 .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));
   142 }
   146 }
   143 
   147 
   144 int main(int argc, char *argv[])
   148 int main(int argc, char *argv[])
   145 {
   149 {
   146     // Since we're calling this first, closeResources() will be the last thing called after main() returns.
   150     // Since we're calling this first, closeResources() will be the last thing called after main() returns.