Parser
- ::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:
@@ -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 ())
|
||||
|
||||
Reference in New Issue
Block a user