diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-05 15:26:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-05 15:26:23 +0300 |
commit | a48638c5e9bfc04876661ea938eed4a3ab9e5c42 (patch) | |
tree | 1b1b6ffe49c5b2dca744ec0d6aa02e84ae1843fe /src/main.cpp | |
parent | 2feb55ced12bad73863ce79a07241344d40e7461 (diff) | |
download | manaverse-a48638c5e9bfc04876661ea938eed4a3ab9e5c42.tar.gz manaverse-a48638c5e9bfc04876661ea938eed4a3ab9e5c42.tar.bz2 manaverse-a48638c5e9bfc04876661ea938eed4a3ab9e5c42.tar.xz manaverse-a48638c5e9bfc04876661ea938eed4a3ab9e5c42.zip |
Fix chat logs dir in command line parameters.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index 9c10fad04..b7f721626 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -93,7 +93,7 @@ static void printVersion() static void parseOptions(const int argc, char *const argv[], Client::Options &options) { - const char *const optstring = "hvud:U:P:Dc:p:l:L:C:s:t:T"; + const char *const optstring = "hvud:U:P:Dc:p:l:L:C:s:t:T:a"; const struct option long_options[] = { @@ -110,10 +110,9 @@ static void parseOptions(const int argc, char *const argv[], { "skip-update", no_argument, nullptr, 'u' }, { "username", required_argument, nullptr, 'U' }, { "no-opengl", no_argument, nullptr, 'O' }, - { "chat-log-dir", required_argument, nullptr, 'l' }, + { "chat-log-dir", required_argument, nullptr, 'a' }, { "version", no_argument, nullptr, 'v' }, { "log-file", required_argument, nullptr, 'l' }, - { "chat-log-dir", required_argument, nullptr, 'L' }, { "screenshot-dir", required_argument, nullptr, 'i' }, { "safemode", no_argument, nullptr, 'm' }, { "tests", no_argument, nullptr, 'T' }, @@ -181,7 +180,7 @@ static void parseOptions(const int argc, char *const argv[], case 'l': options.logFileName = std::string(optarg); break; - case 'L': + case 'a': options.chatLogDir = std::string(optarg); case 'i': options.screenshotDir = optarg; |