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 "";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue