summaryrefslogtreecommitdiff
path: root/src/commandline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commandline.cpp')
-rw-r--r--src/commandline.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/commandline.cpp b/src/commandline.cpp
index 71341f288..dc939786d 100644
--- a/src/commandline.cpp
+++ b/src/commandline.cpp
@@ -113,6 +113,9 @@ static void printHelp()
// TRANSLATORS: command line help
_(" -T --tests : Start testing drivers and "
"auto configuring") <<
+ std::endl <<
+ // TRANSLATORS: command line help
+ _(" -V --validate : Start validating client data") <<
std::endl
#ifdef USE_OPENGL
<<
@@ -132,7 +135,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:e";
+ const char *const optstring = "hvud:U:P:Dc:p:y:l:L:C:s:t:T:a:r:e:V";
const struct option long_options[] =
{
@@ -161,6 +164,7 @@ void parseOptions(const int argc, char *const argv[])
{ "enable-ipc", no_argument, nullptr, 'I' },
{ "default-cursor", no_argument, nullptr, 'q' },
{ "error", no_argument, nullptr, 'e' },
+ { "validate", no_argument, nullptr, 'V' },
{ nullptr, 0, nullptr, 0 }
};
@@ -261,6 +265,9 @@ void parseOptions(const int argc, char *const argv[])
case 'e':
options.error = true;
break;
+ case 'V':
+ options.validate = true;
+ break;
default:
break;
}