From 6a5bdcbcc9b04cf514d1207fdee4241d4f4f2875 Mon Sep 17 00:00:00 2001 From: "A.R. iceslice" Date: Fri, 22 Oct 2010 16:06:49 +0600 Subject: 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. --- src/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main.cpp') 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; -- cgit v1.2.3-70-g09d2