mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdConfig: Obeys verbose mode
This commit is contained in:
parent
ea1e986ab8
commit
b6b28b0cb2
1 changed files with 7 additions and 4 deletions
|
@ -299,10 +299,13 @@ int CmdConfig (
|
|||
throw format ("No entry named '{1}' found.", name);
|
||||
}
|
||||
|
||||
if (change)
|
||||
std::cout << "Config file " << rules.file () << " modified.\n";
|
||||
else
|
||||
std::cout << "No changes made.\n";
|
||||
if (rules.getBoolean ("verbose"))
|
||||
{
|
||||
if (change)
|
||||
std::cout << "Config file " << rules.file () << " modified.\n";
|
||||
else
|
||||
std::cout << "No changes made.\n";
|
||||
}
|
||||
}
|
||||
else
|
||||
CmdShow (rules);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue