summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorSimon Rettberg2017-04-28 15:41:03 +0200
committerSimon Rettberg2017-04-28 15:41:03 +0200
commitd99188384dbede308f3c011ee15f0a62858f2a9c (patch)
tree534b57a002ea130419d1cdf8f1b5bbd87fdbc1f8 /src/main.cpp
parentAdd support for <can_edit> XML entry (diff)
downloadvmchooser2-d99188384dbede308f3c011ee15f0a62858f2a9c.tar.gz
vmchooser2-d99188384dbede308f3c011ee15f0a62858f2a9c.tar.xz
vmchooser2-d99188384dbede308f3c011ee15f0a62858f2a9c.zip
Add option to make pvs box checked by default
Refs #3105
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index aa4eb30..31bd20e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -50,6 +50,7 @@ int main(int argc, char *argv[]) {
" -t, --theme theme\n"
" --template-mode how to treat template entries (IGNORE or BUMP)\n"
" -p, --pvs show pvs options\n"
+ " --pvs-checked check pvs box by default\n"
" -D, --debug print debug information\n"
" -v, --version print version and exit\n"
" -h, --help print usage information and exit\n"
@@ -271,6 +272,9 @@ int main(int argc, char *argv[]) {
if (cmdOptions.contains("pvs")) {
g_pvsEnabled = true;
}
+ if (cmdOptions.contains("pvs-checked")) {
+ g_pvsChecked = true;
+ }
if (cmdOptions.contains("autoquit")) {
bool ok = false;