init: Improved error for ambiguous command

This commit is contained in:
Paul Beckingham 2016-03-02 09:31:21 -05:00
parent 5eb3b77914
commit 2d5e3af4ee

View file

@ -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";