CmdSummary: Obeys verbose mode

This commit is contained in:
Paul Beckingham 2016-06-11 11:05:09 -04:00
parent df0d7a0797
commit 301a01f960

View file

@ -139,12 +139,17 @@ int CmdSummary (
table.set (table.addRow (), (ids ? 8 : 7), Duration (grand_total).formatHours ());
if (table.rows () > 2)
{
std::cout << '\n'
<< table.render ()
<< renderHolidays ("summary", rules, filter)
<< '\n';
}
else
std::cout << "No filtered data found.\n";
{
if (rules.getBoolean ("verbose"))
std::cout << "No filtered data found.\n";
}
return 0;
}