diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-10 21:02:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-11 00:06:30 +0300 |
commit | 845f010511c88acd81da36d0e38b8ef12119d3e6 (patch) | |
tree | c21fa9be4372cdec8aa3f86fc90b1d6e939d824a /src/commandline.cpp | |
parent | 4a8621b8f1e3c714136e662157295edaf47c0983 (diff) | |
download | plus-845f010511c88acd81da36d0e38b8ef12119d3e6.tar.gz plus-845f010511c88acd81da36d0e38b8ef12119d3e6.tar.bz2 plus-845f010511c88acd81da36d0e38b8ef12119d3e6.tar.xz plus-845f010511c88acd81da36d0e38b8ef12119d3e6.zip |
Add command like parameter --validate for validating client data.
Diffstat (limited to 'src/commandline.cpp')
-rw-r--r-- | src/commandline.cpp | 9 |
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; } |