CmdGaps: Obeys verbose mode

This commit is contained in:
Paul Beckingham 2016-06-11 11:03:44 -04:00
parent b6b28b0cb2
commit a3439a3ef8

View file

@ -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;
}