mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: Added rrror for ambiguous commands
This commit is contained in:
parent
0a29c9d321
commit
547370b707
1 changed files with 5 additions and 2 deletions
|
@ -115,8 +115,11 @@ int dispatchCommand (
|
|||
}
|
||||
else
|
||||
{
|
||||
// TODO ambiguous.
|
||||
std::cout << "# ambiguous\n";
|
||||
std::cout << "Timwarrior '" << argv[1] << "', is not a command. "
|
||||
<< "Did you mean one of these:\n";
|
||||
|
||||
for (const auto& command : matches)
|
||||
std::cout << " " << command << "\n";
|
||||
}
|
||||
}
|
||||
else if (argc == 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue