diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-09 21:27:34 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-09 21:27:34 +0000 |
commit | 44177f2e2cdf44d5b51acd60f14f0f231b7a925a (patch) | |
tree | 8eeabfebcfa4683e6a5858212a266dae206a4ea7 | |
parent | Fix content-type of emails to correctly set charset (diff) | |
download | gentoobrowse-api-44177f2e2cdf44d5b51acd60f14f0f231b7a925a.tar.bz2 gentoobrowse-api-44177f2e2cdf44d5b51acd60f14f0f231b7a925a.tar.xz gentoobrowse-api-44177f2e2cdf44d5b51acd60f14f0f231b7a925a.zip |
Send notifications after update when not in background mode
-rw-r--r-- | gentoobrowse-api/util/update.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gentoobrowse-api/util/update.cpp b/gentoobrowse-api/util/update.cpp index e04392d..dbb43ee 100644 --- a/gentoobrowse-api/util/update.cpp +++ b/gentoobrowse-api/util/update.cpp @@ -8,7 +8,7 @@ int main(int c, char ** v) { std::string endpoint; - bool background, tree, bugs, changeLog; + bool background, tree, bugs, changeLog, sendNotifications; po::options_description opts("Gentoo Browse Util::Update options"); opts.add_options() ("endpoint", po::value(&endpoint)->default_value("tcp -p 9001"), "Service endpoint") @@ -16,6 +16,7 @@ main(int c, char ** v) ("bugs", po::value(&bugs)->default_value(true), "Update bugs") ("tree", po::value(&tree)->default_value(true), "Update tree") ("changeLog", po::value(&changeLog)->default_value(true), "Update change log") + ("notifications", po::value(&sendNotifications)->default_value(true), "Send notification emails") ("help,h", "Show help") ; @@ -51,6 +52,7 @@ main(int c, char ** v) std::cerr << ex.what() << std::endl; } }); + m->sendNotifications(); } jobs.clear(); |