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
4d882650
Commit
4d882650
authored
Jun 21, 2022
by
Paul
Browse files
Format
parent
f83bf5a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
src/driver/argument_parser.hpp
src/driver/argument_parser.hpp
+6
-6
src/driver/main.cpp
src/driver/main.cpp
+1
-4
No files found.
src/driver/argument_parser.hpp
View file @
4d882650
...
...
@@ -229,11 +229,11 @@ struct argument_parser
std
::
cout
<<
std
::
endl
;
for
(
auto
&&
arg
:
self
.
arguments
)
{
if
(
arg
.
nargs
!=
0
)
if
(
arg
.
nargs
!=
0
)
continue
;
const
int
col_align
=
35
;
std
::
string
prefix
=
" "
;
int
len
=
0
;
std
::
string
prefix
=
" "
;
int
len
=
0
;
std
::
cout
<<
color
::
fg_green
;
for
(
const
std
::
string
&
a
:
arg
.
flags
)
{
...
...
@@ -244,13 +244,13 @@ struct argument_parser
}
std
::
cout
<<
color
::
reset
;
int
spaces
=
col_align
-
len
;
if
(
spaces
<
0
)
if
(
spaces
<
0
)
{
std
::
cout
<<
std
::
endl
;
}
else
{
for
(
int
i
=
0
;
i
<
spaces
;
i
++
)
for
(
int
i
=
0
;
i
<
spaces
;
i
++
)
std
::
cout
<<
" "
;
}
std
::
cout
<<
arg
.
help
<<
std
::
endl
;
...
...
@@ -259,7 +259,7 @@ struct argument_parser
std
::
cout
<<
color
::
fg_yellow
<<
"OPTIONS:"
<<
color
::
reset
<<
std
::
endl
;
for
(
auto
&&
arg
:
self
.
arguments
)
{
if
(
arg
.
nargs
==
0
)
if
(
arg
.
nargs
==
0
)
continue
;
std
::
cout
<<
std
::
endl
;
std
::
string
prefix
=
" "
;
...
...
src/driver/main.cpp
View file @
4d882650
...
...
@@ -571,10 +571,7 @@ struct main_command
ap
.
show_help
(
version_str
));
}
void
run
()
{
std
::
cout
<<
get_command_help
(
"Missing command:"
)
<<
std
::
endl
;
}
void
run
()
{
std
::
cout
<<
get_command_help
(
"Missing command:"
)
<<
std
::
endl
;
}
};
}
// namespace MIGRAPHX_INLINE_NS
...
...
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