From 0e14d0a92da9ce44811c7b860ef0ea8f896b4f4b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Feb 2013 17:02:59 +0300 Subject: Fix command line parameters. Update command line help and man page. --- docs/manaplus.6 | 4 ++-- src/main.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/manaplus.6 b/docs/manaplus.6 index 3ae55c1c1..adce9b358 100644 --- a/docs/manaplus.6 +++ b/docs/manaplus.6 @@ -18,7 +18,7 @@ A summary of options is included below. .B \-l, \-\-log\-file Log file to use .TP -.B \-L, \-\-chat\-log\-dir +.B \-a, \-\-chat\-log\-dir Chat log dir to use .TP .B \-v, \-\-version @@ -45,7 +45,7 @@ Login server name or IP. .B \-p, \-\-port Login server port. .TP -.B \-\-update\-host +.B \-H, \-\-update\-host Use this update host. .TP .B \-D, \-\-default diff --git a/src/main.cpp b/src/main.cpp index f29735ad8..e9e09e9b7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -62,7 +62,7 @@ static void printHelp() << endl << endl << _("Options:") << endl << _(" -l --log-file : Log file to use") << endl - << _(" -L --chat-log-dir : Chat log dir to use") << endl + << _(" -a --chat-log-dir : Chat log dir to use") << endl << _(" -v --version : Display the version") << endl << _(" -h --help : Display this help") << endl << _(" -C --config-dir : Configuration directory to use") << endl @@ -71,7 +71,7 @@ static void printHelp() << _(" -c --character : Login with this character") << endl << _(" -s --server : Login server name or IP") << endl << _(" -p --port : Login server port") << endl - << _(" --update-host : Use this update host") << endl + << _(" -H --update-host : Use this update host") << endl << _(" -D --default : Choose default character server and " "character") << endl << _(" -u --skip-update : Skip the update downloads") << endl @@ -84,7 +84,7 @@ static void printHelp() << _(" -T --tests : Start testing drivers and " "auto configuring") << endl #ifdef USE_OPENGL - << _(" --no-opengl : Disable OpenGL for this session") << endl + << _(" -O --no-opengl : Disable OpenGL for this session") << endl #endif ; } @@ -175,7 +175,7 @@ static void parseOptions(const int argc, char *const argv[], case 'v': options.printVersion = true; break; - case 'S': + case 'L': options.localDataDir = optarg; break; case 'O': -- cgit v1.2.3-70-g09d2