From a3439a3ef8a141d85e4220a42bb7bf9e6457df08 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 11 Jun 2016 11:03:44 -0400 Subject: [PATCH] CmdGaps: Obeys verbose mode --- src/commands/CmdGaps.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/commands/CmdGaps.cpp b/src/commands/CmdGaps.cpp index 8a704143..1c0911b6 100644 --- a/src/commands/CmdGaps.cpp +++ b/src/commands/CmdGaps.cpp @@ -112,11 +112,16 @@ int CmdGaps ( table.set (table.addRow (), 6, Duration (grand_total).formatHours ()); if (table.rows () > 2) + { std::cout << '\n' << table.render () << '\n'; + } else - std::cout << "No gaps found.\n"; + { + if (rules.getBoolean ("verbose")) + std::cout << "No gaps found.\n"; + } return 0; }