From a48638c5e9bfc04876661ea938eed4a3ab9e5c42 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 5 Oct 2012 15:26:14 +0300 Subject: Fix chat logs dir in command line parameters. --- src/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2