diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-26 17:02:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-26 17:02:59 +0300 |
commit | 0e14d0a92da9ce44811c7b860ef0ea8f896b4f4b (patch) | |
tree | 831acba9a0b799490d0e4396fac8254fd0af7de5 | |
parent | b462762ae88e52ba18a0610c62a9dda6ac89d32d (diff) | |
download | plus-0e14d0a92da9ce44811c7b860ef0ea8f896b4f4b.tar.gz plus-0e14d0a92da9ce44811c7b860ef0ea8f896b4f4b.tar.bz2 plus-0e14d0a92da9ce44811c7b860ef0ea8f896b4f4b.tar.xz plus-0e14d0a92da9ce44811c7b860ef0ea8f896b4f4b.zip |
Fix command line parameters.
Update command line help and man page.
-rw-r--r-- | docs/manaplus.6 | 4 | ||||
-rw-r--r-- | 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': |