diff options
author | Simon Rettberg | 2019-06-03 11:30:36 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-06-03 11:30:36 +0200 |
commit | ef922f2e099cf8556828f9559a154eedefd945f4 (patch) | |
tree | ffeff627023f6dc12a9b1562ec0ffaf6d3ce58e6 /src/main.cpp | |
parent | Fix .conf file reading, add messages/warnings (diff) | |
download | vmchooser2-ef922f2e099cf8556828f9559a154eedefd945f4.tar.gz vmchooser2-ef922f2e099cf8556828f9559a154eedefd945f4.tar.xz vmchooser2-ef922f2e099cf8556828f9559a154eedefd945f4.zip |
Add --dump-config
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 3390101..4c0592f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -30,6 +30,11 @@ int main(int argc, char *argv[]) { return 1; } + if (Config::isSet(Config::DUMP_CONFIG)) { + Config::dump(); + return 0; + } + if (Config::isSet(Config::INSECURE)) { qDebug() << "Warning: Certificate validation disabled"; QSslConfiguration sslConf = QSslConfiguration::defaultConfiguration(); |