mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
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:
parent
a4d908d8b2
commit
1b19414178
3 changed files with 34 additions and 19 deletions
|
@ -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 ())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue