From 3a5ebd1bd5c4a7503ca071be6ec0466bb36873d9 Mon Sep 17 00:00:00 2001 From: Sude Date: Sun, 14 Jan 2024 11:49:24 +0200 Subject: [PATCH] Add options to select blacklist and ignorelist file --- main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.cpp b/main.cpp index ccdd892..fb165aa 100644 --- a/main.cpp +++ b/main.cpp @@ -64,6 +64,9 @@ int main(int argc, char *argv[]) Globals::galaxyConf.setFilepath(Globals::globalConfig.sConfigDirectory + "/galaxy_tokens.json"); + std::string sDefaultBlacklistFilePath = Globals::globalConfig.sConfigDirectory + "/blacklist.txt"; + std::string sDefaultIgnorelistFilePath = Globals::globalConfig.sConfigDirectory + "/ignorelist.txt"; + std::string priority_help_text = "Set priority by separating values with \",\"\nCombine values by separating with \"+\""; // Create help text for --platform option std::string platform_text = "Select which installers are downloaded\n"; @@ -233,6 +236,8 @@ int main(int argc, char *argv[]) ("enable-login-gui", bpo::value(&Globals::globalConfig.bEnableLoginGUI)->zero_tokens()->default_value(false), "Enable login GUI when encountering reCAPTCHA on login form") #endif ("tag", bpo::value(&tags)->default_value(""), "Filter using tags. Separate with \",\" to use multiple values") + ("blacklist", bpo::value(&Globals::globalConfig.sBlacklistFilePath)->default_value(sDefaultBlacklistFilePath), "Filepath to blacklist") + ("ignorelist", bpo::value(&Globals::globalConfig.sIgnorelistFilePath)->default_value(sDefaultIgnorelistFilePath), "Filepath to ignorelist") ; // Commandline options (config file) options_cli_cfg.add_options()