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);
|
throw format ("No entry named '{1}' found.", name);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (change)
|
if (rules.getBoolean ("verbose"))
|
||||||
std::cout << "Config file " << rules.file () << " modified.\n";
|
{
|
||||||
else
|
if (change)
|
||||||
std::cout << "No changes made.\n";
|
std::cout << "Config file " << rules.file () << " modified.\n";
|
||||||
|
else
|
||||||
|
std::cout << "No changes made.\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
CmdShow (rules);
|
CmdShow (rules);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue