summaryrefslogtreecommitdiff
path: root/src/commandline.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-23 16:45:51 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-23 16:45:51 +0300
commit6c4c0169b21937853f4892a5c75fafaf024a4314 (patch)
tree9fb04f968b355c27866dfe1aca6bde36140f666e /src/commandline.cpp
parent11673097858a0469fc138908b735038109e3bf59 (diff)
downloadmv-6c4c0169b21937853f4892a5c75fafaf024a4314.tar.gz
mv-6c4c0169b21937853f4892a5c75fafaf024a4314.tar.bz2
mv-6c4c0169b21937853f4892a5c75fafaf024a4314.tar.xz
mv-6c4c0169b21937853f4892a5c75fafaf024a4314.zip
Add command line option for crash manaplus on start.
Diffstat (limited to 'src/commandline.cpp')
-rw-r--r--src/commandline.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/commandline.cpp b/src/commandline.cpp
index 562726a1e..506242a2c 100644
--- a/src/commandline.cpp
+++ b/src/commandline.cpp
@@ -131,7 +131,7 @@ static void printVersion()
void parseOptions(const int argc, char *const argv[])
{
- const char *const optstring = "hvud:U:P:Dc:p:y:l:L:C:s:t:T:a:r";
+ const char *const optstring = "hvud:U:P:Dc:p:y:l:L:C:s:t:T:a:r:e";
const struct option long_options[] =
{
@@ -159,6 +159,7 @@ void parseOptions(const int argc, char *const argv[])
{ "server-type", required_argument, nullptr, 'y' },
{ "enable-ipc", no_argument, nullptr, 'I' },
{ "default-cursor", no_argument, nullptr, 'q' },
+ { "error", no_argument, nullptr, 'e' },
{ nullptr, 0, nullptr, 0 }
};
@@ -256,6 +257,9 @@ void parseOptions(const int argc, char *const argv[])
case 'q':
options.defaultCursor = true;
break;
+ case 'e':
+ options.error = true;
+ break;
default:
break;
}