From 05e9409d52290b273a2146cbcdc739d20d2ec0fc Mon Sep 17 00:00:00 2001 From: Sude Date: Wed, 5 Sep 2018 17:51:03 +0300 Subject: [PATCH] Add separate option to set libcurl to verbose mode New --curl-verbose option is used to set libcurl to verbose mode. Old --verbose option is still used to print more information but no longer sets libcurl to verbose mode. --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 8b53afb..49f9c79 100644 --- a/main.cpp +++ b/main.cpp @@ -197,6 +197,7 @@ int main(int argc, char *argv[]) ("no-duplicate-handling", bpo::value(&bNoDuplicateHandler)->zero_tokens()->default_value(false), "Don't use duplicate handler for installers\nDuplicate installers from different languages are handled separately") ("no-subdirectories", bpo::value(&bNoSubDirectories)->zero_tokens()->default_value(false), "Don't create subdirectories for extras, patches and language packs") ("verbose", bpo::value(&Globals::globalConfig.bVerbose)->zero_tokens()->default_value(false), "Print lots of information") + ("curl-verbose", bpo::value(&Globals::globalConfig.curlConf.bVerbose)->zero_tokens()->default_value(false), "Set libcurl to verbose mode") ("insecure", bpo::value(&bInsecure)->zero_tokens()->default_value(false), "Don't verify authenticity of SSL certificates") ("timeout", bpo::value(&Globals::globalConfig.curlConf.iTimeout)->default_value(10), "Set timeout for connection\nMaximum time in seconds that connection phase is allowed to take") ("retries", bpo::value(&Globals::globalConfig.iRetries)->default_value(3), "Set maximum number of retries on failed download") @@ -430,7 +431,6 @@ int main(int argc, char *argv[]) set_vm_value(vm, "threads", Globals::globalConfig.iThreads); } - Globals::globalConfig.curlConf.bVerbose = Globals::globalConfig.bVerbose; Globals::globalConfig.curlConf.bVerifyPeer = !bInsecure; Globals::globalConfig.bColor = !bNoColor; Globals::globalConfig.bUnicode = !bNoUnicode;