mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CLI: If a command is not found, look instead for an extension
This commit is contained in:
parent
60779c6a37
commit
1773db02e1
2 changed files with 5 additions and 0 deletions
|
@ -292,6 +292,10 @@ std::string CLI::getCommand () const
|
|||
if (a.hasTag ("CMD"))
|
||||
return a.attribute ("canonical");
|
||||
|
||||
for (auto& a : _args)
|
||||
if (a.hasTag ("EXT"))
|
||||
return a.attribute ("canonical");
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
|
|
|
@ -210,6 +210,7 @@ int dispatchCommand (
|
|||
else if (command == "tags") status = CmdTags ( rules, database );
|
||||
else if (command == "track") status = CmdTrack (cli, rules, database );
|
||||
else if (command == "undo") status = CmdUndo ( );
|
||||
else status = CmdReport (cli, rules, database, extensions);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue