Parser
- Corrected comments for accuracy.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user