From bc24d107d5537f00c37ce84b30540827198e626e Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 3 Jul 2014 19:09:24 -0400 Subject: [PATCH] Context - Stuffs parser with alias definitions, from Context::loadAliases. This keeps the configuration settings apart from the Parser implementation. --- src/Context.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Context.cpp b/src/Context.cpp index bfeffd3c5..21166d929 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -187,6 +187,7 @@ int Context::initialize (int argc, const char** argv) // Now the entities are loaded, parsing may resume. parser.findBinary (); // + parser.resolveAliases (); parser.findCommand (); // parser.findUUIDList (); // Before findIdSequence parser.findIdSequence (); // @@ -750,6 +751,9 @@ void Context::updateVerbosity () //////////////////////////////////////////////////////////////////////////////// void Context::loadAliases () { + std::map ::iterator i; + for (i = config.begin (); i != config.end (); ++i) + parser.alias (i->first, i->second); } ////////////////////////////////////////////////////////////////////////////////