mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-02-01 21:42:31 +01:00
Use proper English: renamed --unsecure to --insecure
This commit is contained in:
parent
7d24c589d2
commit
f992816465
6
main.cpp
6
main.cpp
@ -75,7 +75,7 @@ int main(int argc, char *argv[])
|
||||
bpo::options_description config_file_options("Configuration");
|
||||
try
|
||||
{
|
||||
bool bUnsecure = false;
|
||||
bool bInsecure = false;
|
||||
desc.add_options()
|
||||
("help,h", "Print help message")
|
||||
("login", bpo::value<bool>(&config.bLogin)->zero_tokens()->default_value(false), "Login")
|
||||
@ -100,7 +100,7 @@ int main(int argc, char *argv[])
|
||||
("no-unicode", bpo::value<bool>(&config.bNoUnicode)->zero_tokens()->default_value(false), "Don't use Unicode in the progress bar")
|
||||
("no-color", bpo::value<bool>(&config.bNoColor)->zero_tokens()->default_value(false), "Don't use coloring in the progress bar")
|
||||
("verbose", bpo::value<bool>(&config.bVerbose)->zero_tokens()->default_value(false), "Print lots of information")
|
||||
("unsecure", bpo::value<bool>(&bUnsecure)->zero_tokens()->default_value(false), "Don't verify authenticity of SSL certificates")
|
||||
("insecure", bpo::value<bool>(&bInsecure)->zero_tokens()->default_value(false), "Don't verify authenticity of SSL certificates")
|
||||
("timeout", bpo::value<long int>(&config.iTimeout)->default_value(10), "Set timeout for connection\nMaximum time in seconds that connection phase is allowed to take")
|
||||
;
|
||||
|
||||
@ -142,7 +142,7 @@ int main(int argc, char *argv[])
|
||||
if (vm.count("limit-rate"))
|
||||
config.iDownloadRate <<= 10; // Convert download rate from bytes to kilobytes
|
||||
|
||||
config.bVerifyPeer = !bUnsecure;
|
||||
config.bVerifyPeer = !bInsecure;
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user