mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdGaps: Obeys verbose mode
This commit is contained in:
parent
b6b28b0cb2
commit
a3439a3ef8
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue