Definition at line 137 of file commandline.cpp.
139 const char *
const optstring =
"hvud:U:P:Dc:p:y:l:L:C:s:t:T:a:r:e:V";
141 const option long_options[] =
143 {
"config-dir", required_argument,
nullptr,
'C' },
144 {
"data", required_argument,
nullptr,
'd' },
145 {
"default", no_argument,
nullptr,
'D' },
146 {
"password", required_argument,
nullptr,
'P' },
147 {
"character", required_argument,
nullptr,
'c' },
148 {
"help", no_argument,
nullptr,
'h' },
149 {
"localdata-dir", required_argument,
nullptr,
'L' },
150 {
"update-host", required_argument,
nullptr,
'H' },
151 {
"port", required_argument,
nullptr,
'p' },
152 {
"server", required_argument,
nullptr,
's' },
153 {
"skip-update", no_argument,
nullptr,
'u' },
154 {
"username", required_argument,
nullptr,
'U' },
155 {
"no-opengl", no_argument,
nullptr,
'O' },
156 {
"chat-log-dir", required_argument,
nullptr,
'a' },
157 {
"version", no_argument,
nullptr,
'v' },
158 {
"log-file", required_argument,
nullptr,
'l' },
159 {
"screenshot-dir", required_argument,
nullptr,
'i' },
160 {
"safemode", no_argument,
nullptr,
'm' },
161 {
"tests", no_argument,
nullptr,
'T' },
162 {
"test", required_argument,
nullptr,
't' },
163 {
"renderer", required_argument,
nullptr,
'r' },
164 {
"server-type", required_argument,
nullptr,
'y' },
165 {
"enable-ipc", no_argument,
nullptr,
'I' },
166 {
"hide-cursor", no_argument,
nullptr,
'q' },
167 {
"error", no_argument,
nullptr,
'e' },
168 {
"validate", no_argument,
nullptr,
'V' },
169 {
nullptr, 0,
nullptr, 0 }
174 while (optind < argc)
176 const int result = getopt_long(argc,
248 options.
test.clear();
252 options.
test = std::string(optarg);
267 options.
error =
true;
static void printVersion()
bool checkPath(const std::string &path)
std::string screenshotDir
References Options::brandingPath, CAST_S32, CAST_U16, Options::character, Options::chatLogDir, checkPath(), Options::chooseDefault, Options::configDir, Options::dataPath, Options::error, Options::hideCursor, Options::ipc, Options::localDataDir, Options::logFileName, Options::noOpenGL, Settings::options, Options::password, printHelp(), Options::printHelp, printVersion(), Options::printVersion, Options::renderer, Options::safeMode, Options::screenshotDir, Options::serverName, Options::serverPort, Options::serverType, settings, Options::skipUpdate, Options::test, Options::testMode, Options::updateHost, Options::username, and Options::validate.
Referenced by mainGui().