mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: Improved error for ambiguous command
This commit is contained in:
parent
5eb3b77914
commit
2d5e3af4ee
1 changed files with 3 additions and 2 deletions
|
@ -122,8 +122,9 @@ int dispatchCommand (
|
|||
}
|
||||
else
|
||||
{
|
||||
std::cout << "Timwarrior '" << argv[1] << "', is not a command. "
|
||||
<< "Did you mean one of these:\n";
|
||||
std::cout << "timew: '" << argv[1] << "' is not a command. See 'timew help'.\n"
|
||||
<< "\n"
|
||||
<< "Did you mean one of these?\n";
|
||||
|
||||
for (const auto& command : matches)
|
||||
std::cout << " " << command << "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue