From ef922f2e099cf8556828f9559a154eedefd945f4 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 3 Jun 2019 11:30:36 +0200 Subject: Add --dump-config --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main.cpp') 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(); -- cgit v1.2.3-55-g7522