cmdargshelp.cpp
1 //------------------------------------------------------------------------------
2 // cmdargshelp.cpp
3 //------------------------------------------------------------------------------
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 // 02110-1301, USA.
19 //
20 //------------------------------------------------------------------------------
21 // Copyright (C) 2015 "Zalewa" <zalewapl@gmail.com>
22 //------------------------------------------------------------------------------
23 #include "cmdargshelp.h"
24 
25 QString CmdArgsHelp::argsHelp()
26 {
27  QString help = "";
28  help += tr(
29  "--connect protocol://ip[:port]\n"
30  " Attempts to connect to the specified server.\n");
31  help += tr(
32  "--datadir [directory]\n"
33  " Sets an explicit search location for\n"
34  " IP2C data along with plugins.\n"
35  " Can be specified multiple times.\n");
36  help += tr(
37  "--rcon [plugin] [ip]\n"
38  " Launch the rcon client for the specified ip.\n");
39  help += tr(
40  "--portable\n"
41  " Starts application in portable mode.\n"
42  " In portable mode Doomseeker saves all configuration files\n"
43  " to the directory where its executable resides.\n"
44  " Normally, configuration is saved to user's home directory.\n");
45  help += tr(
46  "--version-json [file]\n"
47  " Prints version info on Doomseeker and all\n"
48  " plugins in JSON format to specified file,\n"
49  " then closes the program.\n");
50  return help;
51 }