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 ()); table.set (table.addRow (), 6, Duration (grand_total).formatHours ());
if (table.rows () > 2) if (table.rows () > 2)
{
std::cout << '\n' std::cout << '\n'
<< table.render () << table.render ()
<< '\n'; << '\n';
}
else else
{
if (rules.getBoolean ("verbose"))
std::cout << "No gaps found.\n"; std::cout << "No gaps found.\n";
}
return 0; return 0;
} }