From bd5c9be6ed456767c0eb9ff0803d135f2915ac68 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 11 Jun 2016 11:04:12 -0400 Subject: [PATCH] CmdLengthen: Obeys verbose mode --- src/commands/CmdLengthen.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/CmdLengthen.cpp b/src/commands/CmdLengthen.cpp index 0926a914..84ca2974 100644 --- a/src/commands/CmdLengthen.cpp +++ b/src/commands/CmdLengthen.cpp @@ -72,7 +72,8 @@ int CmdLengthen ( database.modifyInterval (tracked[tracked.size () - id], i); // Feedback. - std::cout << "Lengthened @" << id << " by " << dur.formatHours () << '\n'; + if (rules.getBoolean ("verbose")) + std::cout << "Lengthened @" << id << " by " << dur.formatHours () << '\n'; } else std::cout << "Cannot lengthen open interval @" << id << '\n';