From 369e8bb10b32b1d8738a3bcc725adf14db399844 Mon Sep 17 00:00:00 2001 From: Sude Date: Fri, 5 Sep 2014 20:25:40 +0300 Subject: [PATCH] Add --no-cover option back Used to override --cover option. --- main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.cpp b/main.cpp index 2ce6350..b4ef7a4 100644 --- a/main.cpp +++ b/main.cpp @@ -120,6 +120,7 @@ int main(int argc, char *argv[]) bool bNoSubDirectories = false; bool bNoDeb = false; bool bNoTarGz = false; + bool bNoCover = false; // Commandline options (no config file) options_cli_no_cfg.add_options() ("help,h", "Print help message") @@ -137,6 +138,7 @@ int main(int argc, char *argv[]) ("save-config", bpo::value(&config.bSaveConfig)->zero_tokens()->default_value(false), "Create config file with current settings") ("reset-config", bpo::value(&config.bResetConfig)->zero_tokens()->default_value(false), "Reset config settings to default") ("report", bpo::value(&config.bReport)->zero_tokens()->default_value(false), "Save report of downloaded/repaired files") + ("no-cover", bpo::value(&bNoCover)->zero_tokens()->default_value(false), "Don't download cover images. Overrides --cover option.\nUseful for making exceptions when \"cover\" is set to true in config file.") ; // Commandline options (config file) options_cli_cfg.add_options() @@ -266,6 +268,10 @@ int main(int argc, char *argv[]) config.bDLC = !bNoDLC; config.bRemoteXML = !bNoRemoteXML; config.bSubDirectories = !bNoSubDirectories; + + // Override cover option + if (bNoCover) + config.bCover = false; } catch (std::exception& e) {