23 #include "cmdargshelp.h" 29 "--connect <protocol://ip[:port]>\n" 30 " Attempts to connect to the specified server.\n");
33 " Launches Doomseeker in \"Create Game\" mode.\n");
35 "--datadir <directory>\n" 36 " Sets an explicit search location for\n" 37 " IP2C data along with plugins.\n" 38 " Can be specified multiple times.\n");
41 " Prints this list of command line arguments.\n");
43 "--rcon [plugin] [ip]\n" 44 " Launch the rcon client for the specified ip.\n");
47 " Starts application in portable mode.\n" 48 " In portable mode Doomseeker saves all configuration files\n" 49 " to the directory where its executable resides.\n" 50 " Normally, configuration is saved to user's home directory.\n");
52 "--version-json [file|-]\n" 53 " Prints version info on Doomseeker and all\n" 54 " plugins in JSON format to specified file,\n" 55 " then closes the program. If file is not\n" 56 " specified or specified as '-', version info\n" 57 " is printed to stdout.\n");
60 " Forces verbose logging to stderr.\n" 61 " This is the default in most cases.\n");
64 " Forces no logging to stderr.\n" 65 " This is the default when dumping versions.\n");
71 QString help = tr(
"Available command line parameters:\n");
78 QString help = tr(
"doomseeker: expected %n argument(s) in option %1\n\n",
nullptr, expectedArguments).arg(option);
85 QString help = tr(
"doomseeker: unrecognized option '%1'\n\n").arg(option);
static QString unrecognizedOption(QString option)
Returns a string informing about the use of an unknown option, followed by availableCommands().
static QString availableCommands()
Prepends "Available command line parameters" to argsHelp().
static QString argsHelp()
Returns all the options that Doomseeker accepts, excluding the ones for internal use.
static QString missingArgs(int expectedArguments, QString option)
Returns a string informing about the lack of arguments, followed by availableCommands().