mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Parser
- Corrected comments for accuracy.
This commit is contained in:
parent
a2763a275c
commit
06210056f8
1 changed files with 5 additions and 6 deletions
|
@ -499,7 +499,7 @@ void Parser::findOverrides ()
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Look for RC and return file as a File.
|
// Look for RC and initialize a File object.
|
||||||
void Parser::getOverrides (
|
void Parser::getOverrides (
|
||||||
std::string& home,
|
std::string& home,
|
||||||
File& rc)
|
File& rc)
|
||||||
|
@ -529,7 +529,7 @@ void Parser::getOverrides (
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Look for CONFIG data.location and return value as a Path.
|
// Look for CONFIG data.location and initialize a Path object.
|
||||||
void Parser::getDataLocation (Path& data)
|
void Parser::getDataLocation (Path& data)
|
||||||
{
|
{
|
||||||
std::string location = context.config.get ("data.location");
|
std::string location = context.config.get ("data.location");
|
||||||
|
@ -548,14 +548,13 @@ void Parser::getDataLocation (Path& data)
|
||||||
context.header (format (STRING_PARSER_ALTERNATE_DATA, (std::string) data));
|
context.header (format (STRING_PARSER_ALTERNATE_DATA, (std::string) data));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Keep looping, because if there are multiple overrides, we want the last
|
// Keep looping, because if there are multiple overrides, the last one
|
||||||
// one to dominate.
|
// should dominate.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Takes all CONFIG name/value pairs and overrides configuration.
|
// Takes all CONFIG name/value pairs and override the configuration.
|
||||||
// leaving only the plain args.
|
|
||||||
void Parser::applyOverrides ()
|
void Parser::applyOverrides ()
|
||||||
{
|
{
|
||||||
std::vector <Tree*> nodes;
|
std::vector <Tree*> nodes;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue