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 else
{ {
std::cout << "Timwarrior '" << argv[1] << "', is not a command. " std::cout << "timew: '" << argv[1] << "' is not a command. See 'timew help'.\n"
<< "Did you mean one of these:\n"; << "\n"
<< "Did you mean one of these?\n";
for (const auto& command : matches) for (const auto& command : matches)
std::cout << " " << command << "\n"; std::cout << " " << command << "\n";