- Implemented ::add.
This commit is contained in:
Paul Beckingham 2014-10-14 01:35:33 -04:00
parent acca1c66a3
commit c79a09d0b8
2 changed files with 12 additions and 0 deletions

View file

@ -78,6 +78,17 @@ void CLI::initialize (int argc, const char** argv)
extractOverrides (); extractOverrides ();
} }
////////////////////////////////////////////////////////////////////////////////
void CLI::add (const std::string& arg)
{
_args.push_back (arg);
dump ("CLI::add");
extractOverrides ();
aliasExpansion ();
categorize ();
}
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void CLI::extractOverrides () void CLI::extractOverrides ()
{ {

View file

@ -38,6 +38,7 @@ public:
void alias (const std::string&, const std::string&); void alias (const std::string&, const std::string&);
void entity (const std::string&, const std::string&); void entity (const std::string&, const std::string&);
void initialize (int, const char**); void initialize (int, const char**);
void add (const std::string&);
void aliasExpansion (); void aliasExpansion ();
void categorize (); void categorize ();
bool exactMatch (const std::string&, const std::string&) const; bool exactMatch (const std::string&, const std::string&) const;