Commit 8b041a8e authored by Paul's avatar Paul
Browse files

Fix color

parent 836b2c34
......@@ -474,11 +474,9 @@ struct argument_parser
}
std::cout << color::fg_red << color::bold << "error: " << color::reset;
auto sc = spellcheck(inputs);
std::cout << sc.distance << std::endl;
std::cout << sc.correct << std::endl;
if(sc.distance < 5)
{
std::cout << "Found argument '" << color::fg_yellow << sc.incorrect << "'";
std::cout << "Found argument '" << color::fg_yellow << sc.incorrect << color::reset << "'";
std::cout << " which wasn't expected, or isn't valid in this context" << std::endl;
std::cout << " ";
std::cout << "Did you mean " << color::fg_green << sc.correct << color::reset << "?"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment