Feature - #296 Setting configuration variables in .taskrc

- Now supports 'task config name value', 'task config name ""', and
  'task config name' to directly modify the .taskrc file.
- Updated man page.
- Added unit tests.
- Modified existing config command to also display configuration
  variables that have no values.
This commit is contained in:
Paul Beckingham 2010-01-17 00:02:17 -05:00
parent c82469fa2c
commit 229a3d309c
7 changed files with 149 additions and 12 deletions

View file

@ -271,7 +271,10 @@ void Config::load (const std::string& file, int nest /* = 1 */)
// First time in, load the default values.
if (nest == 1)
{
setDefaults ();
original_file = File (file);
}
// Read the file, then parse the contents.
std::string contents;