- ::findCommand now checks for any abbreviated command.  If it finds either an
  exact match, or no ambiguity, it checks again to determine READCMD, WRITECMD
  or HELPER.
This commit is contained in:
Paul Beckingham 2014-05-26 15:05:56 -04:00
parent a4d908d8b2
commit 1b19414178
3 changed files with 34 additions and 19 deletions

View file

@ -156,6 +156,8 @@ int Context::initialize (int argc, const char** argv)
std::map <std::string, Command*>::iterator cmd;
for (cmd = commands.begin (); cmd != commands.end (); ++cmd)
{
parser.entity ("cmd", cmd->first);
if (cmd->first[0] == '_')
parser.entity ("helper", cmd->first);
else if (cmd->second->read_only ())