CLI2: Entity capture.

- CLI2::entity now captures all the known entities, duplicating the processing
  in Context for now.
This commit is contained in:
Paul Beckingham 2015-06-13 13:57:53 -04:00
parent 96493db047
commit 22765a70cb
3 changed files with 27 additions and 1 deletions

View file

@ -26,7 +26,7 @@
#include <cmake.h>
//#include <sstream>
//#include <algorithm>
#include <algorithm>
#include <Context.h>
//#include <Nibbler.h>
//#include <Lexer.h>
@ -317,6 +317,7 @@ void CLI2::alias (const std::string& name, const std::string& value)
{
_aliases.insert (std::pair <std::string, std::string> (name, value));
}
*/
////////////////////////////////////////////////////////////////////////////////
void CLI2::entity (const std::string& category, const std::string& name)
@ -331,6 +332,7 @@ void CLI2::entity (const std::string& category, const std::string& name)
_entities.insert (std::pair <std::string, std::string> (category, name));
}
/*
////////////////////////////////////////////////////////////////////////////////
// Capture the original, intact command line arguments.
void CLI2::initialize (int argc, const char** argv)