mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdContext: Minor style and message changes
This commit is contained in:
parent
0ab1dc0c9c
commit
ee23a099f2
3 changed files with 96 additions and 38 deletions
|
@ -156,13 +156,13 @@ int CmdConfig::execute (std::string& output)
|
|||
if (words.size ())
|
||||
{
|
||||
bool confirmation = context.config.getBoolean ("confirmation");
|
||||
|
||||
bool change = false;
|
||||
bool found = false;
|
||||
|
||||
std::string name = words[0];
|
||||
std::string value = "";
|
||||
|
||||
// Join the remaining words into config variable's value
|
||||
if (words.size () > 1)
|
||||
{
|
||||
for (unsigned int i = 1; i < words.size (); ++i)
|
||||
|
@ -199,7 +199,7 @@ int CmdConfig::execute (std::string& output)
|
|||
throw format (STRING_CMD_CONFIG_NO_ENTRY, name);
|
||||
}
|
||||
|
||||
// Write .taskrc (or equivalent)
|
||||
// Show feedback depending on whether .taskrc has been rewritten
|
||||
if (change)
|
||||
{
|
||||
out << format (STRING_CMD_CONFIG_FILE_MOD,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue