CmdContext: Minor style and message changes

This commit is contained in:
Tomas Babej 2015-02-23 07:51:57 +01:00 committed by Paul Beckingham
parent 0ab1dc0c9c
commit ee23a099f2
3 changed files with 96 additions and 38 deletions

View file

@ -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,