summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA.R. iceslice <iceslice3000@gmail.com>2010-10-22 16:06:49 +0600
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2010-10-22 12:45:27 +0200
commit6a5bdcbcc9b04cf514d1207fdee4241d4f4f2875 (patch)
tree256791c113a187e4fc0e51cad9d81dbf697c3ff4
parent14b048899065054bf2a8171a566616607479c09f (diff)
downloadmana-6a5bdcbcc9b04cf514d1207fdee4241d4f4f2875.tar.gz
mana-6a5bdcbcc9b04cf514d1207fdee4241d4f4f2875.tar.bz2
mana-6a5bdcbcc9b04cf514d1207fdee4241d4f4f2875.tar.xz
mana-6a5bdcbcc9b04cf514d1207fdee4241d4f4f2875.zip
Fixed command line parameter '--localdata-dir'
Also changed '--chat-log-dir' to use -T as short form, to avoid conflict with -l option used by ManaPlus.
-rw-r--r--src/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b82881d7..fe1427be 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -59,7 +59,7 @@ static void printHelp()
<< _(" -u --skip-update : Skip the update downloads") << endl
<< _(" -d --data : Directory to load game data from") << endl
<< _(" -L --localdata-dir : Directory to use as local data directory") << endl
- << _(" -l --chat-log-dir : Chat log dir to use") << endl
+ << _(" -T --chat-log-dir : Chat log dir to use") << endl
<< _(" --screenshot-dir : Directory to store screenshots") << endl
#ifdef USE_OPENGL
<< _(" --no-opengl : Disable OpenGL for this session") << endl
@@ -74,7 +74,7 @@ static void printVersion()
static void parseOptions(int argc, char *argv[], Client::Options &options)
{
- const char *optstring = "hvud:U:P:Dc:s:p:C:L:";
+ const char *optstring = "hvud:U:P:Dc:s:p:C:L:T:";
const struct option long_options[] = {
{ "config-dir", required_argument, 0, 'C' },
@@ -90,7 +90,7 @@ static void parseOptions(int argc, char *argv[], Client::Options &options)
{ "skip-update", no_argument, 0, 'u' },
{ "username", required_argument, 0, 'U' },
{ "no-opengl", no_argument, 0, 'O' },
- { "chat-log-dir", required_argument, 0, 'l' },
+ { "chat-log-dir", required_argument, 0, 'T' },
{ "version", no_argument, 0, 'v' },
{ "screenshot-dir", required_argument, 0, 'i' },
{ 0 }
@@ -143,13 +143,13 @@ static void parseOptions(int argc, char *argv[], Client::Options &options)
case 'v':
options.printVersion = true;
break;
- case 'S':
+ case 'L':
options.localDataDir = optarg;
break;
case 'O':
options.noOpenGL = true;
break;
- case 'l':
+ case 'T':
options.chatLogDir = std::string(optarg);
case 'i':
options.screenshotDir = optarg;