Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
8b041a8e
Commit
8b041a8e
authored
Jul 03, 2022
by
Paul
Browse files
Fix color
parent
836b2c34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
src/driver/argument_parser.hpp
src/driver/argument_parser.hpp
+1
-3
No files found.
src/driver/argument_parser.hpp
View file @
8b041a8e
...
...
@@ -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
<<
"?"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment