init: Added rrror for ambiguous commands

This commit is contained in:
Paul Beckingham 2016-03-02 08:57:43 -05:00
parent 0a29c9d321
commit 547370b707

View file

@ -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)