summaryrefslogtreecommitdiff
path: root/src/commandline.cpp
diff options
context:
space:
mode:
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;
}