Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
a7392ca9
Commit
a7392ca9
authored
Jun 22, 2022
by
Paul
Browse files
Fix tidy issue
parent
c7b2d0ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/driver/argument_parser.hpp
src/driver/argument_parser.hpp
+6
-1
No files found.
src/driver/argument_parser.hpp
View file @
a7392ca9
...
@@ -265,6 +265,11 @@ struct argument_parser
...
@@ -265,6 +265,11 @@ struct argument_parser
return
nullptr
;
return
nullptr
;
return
std
::
addressof
(
*
it
);
return
std
::
addressof
(
*
it
);
}
}
template
<
class
F
>
bool
has_argument
(
F
f
)
{
return
find_argument
(
f
)
!=
nullptr
;
}
MIGRAPHX_DRIVER_STATIC
auto
show_help
(
const
std
::
string
&
msg
=
""
)
MIGRAPHX_DRIVER_STATIC
auto
show_help
(
const
std
::
string
&
msg
=
""
)
{
{
...
@@ -414,7 +419,7 @@ struct argument_parser
...
@@ -414,7 +419,7 @@ struct argument_parser
std
::
cout
<<
" "
<<
exe_name
<<
" "
;
std
::
cout
<<
" "
<<
exe_name
<<
" "
;
show_usage
();
show_usage
();
std
::
cout
<<
std
::
endl
;
std
::
cout
<<
std
::
endl
;
if
(
find
_argument
([](
const
auto
&
a
)
{
return
contains
(
a
.
flags
,
"--help"
);
}))
if
(
has
_argument
([](
const
auto
&
a
)
{
return
contains
(
a
.
flags
,
"--help"
);
}))
{
{
std
::
cout
<<
std
::
endl
;
std
::
cout
<<
std
::
endl
;
std
::
cout
<<
"For more information try '"
<<
color
::
fg_green
<<
"--help"
<<
color
::
reset
std
::
cout
<<
"For more information try '"
<<
color
::
fg_green
<<
"--help"
<<
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