mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdSummary: Obeys verbose mode
This commit is contained in:
parent
df0d7a0797
commit
301a01f960
1 changed files with 6 additions and 1 deletions
|
@ -139,12 +139,17 @@ int CmdSummary (
|
||||||
table.set (table.addRow (), (ids ? 8 : 7), Duration (grand_total).formatHours ());
|
table.set (table.addRow (), (ids ? 8 : 7), Duration (grand_total).formatHours ());
|
||||||
|
|
||||||
if (table.rows () > 2)
|
if (table.rows () > 2)
|
||||||
|
{
|
||||||
std::cout << '\n'
|
std::cout << '\n'
|
||||||
<< table.render ()
|
<< table.render ()
|
||||||
<< renderHolidays ("summary", rules, filter)
|
<< renderHolidays ("summary", rules, filter)
|
||||||
<< '\n';
|
<< '\n';
|
||||||
|
}
|
||||||
else
|
else
|
||||||
std::cout << "No filtered data found.\n";
|
{
|
||||||
|
if (rules.getBoolean ("verbose"))
|
||||||
|
std::cout << "No filtered data found.\n";
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue