Commit 4d882650 authored by Paul's avatar Paul
Browse files

Format

parent f83bf5a5
...@@ -229,11 +229,11 @@ struct argument_parser ...@@ -229,11 +229,11 @@ struct argument_parser
std::cout << std::endl; std::cout << std::endl;
for(auto&& arg : self.arguments) for(auto&& arg : self.arguments)
{ {
if (arg.nargs != 0) if(arg.nargs != 0)
continue; continue;
const int col_align = 35; const int col_align = 35;
std::string prefix = " "; std::string prefix = " ";
int len = 0; int len = 0;
std::cout << color::fg_green; std::cout << color::fg_green;
for(const std::string& a : arg.flags) for(const std::string& a : arg.flags)
{ {
...@@ -244,13 +244,13 @@ struct argument_parser ...@@ -244,13 +244,13 @@ struct argument_parser
} }
std::cout << color::reset; std::cout << color::reset;
int spaces = col_align - len; int spaces = col_align - len;
if (spaces < 0) if(spaces < 0)
{ {
std::cout << std::endl; std::cout << std::endl;
} }
else else
{ {
for(int i=0;i<spaces;i++) for(int i = 0; i < spaces; i++)
std::cout << " "; std::cout << " ";
} }
std::cout << arg.help << std::endl; std::cout << arg.help << std::endl;
...@@ -259,7 +259,7 @@ struct argument_parser ...@@ -259,7 +259,7 @@ struct argument_parser
std::cout << color::fg_yellow << "OPTIONS:" << color::reset << std::endl; std::cout << color::fg_yellow << "OPTIONS:" << color::reset << std::endl;
for(auto&& arg : self.arguments) for(auto&& arg : self.arguments)
{ {
if (arg.nargs == 0) if(arg.nargs == 0)
continue; continue;
std::cout << std::endl; std::cout << std::endl;
std::string prefix = " "; std::string prefix = " ";
......
...@@ -571,10 +571,7 @@ struct main_command ...@@ -571,10 +571,7 @@ struct main_command
ap.show_help(version_str)); ap.show_help(version_str));
} }
void run() void run() { std::cout << get_command_help("Missing command:") << std::endl; }
{
std::cout << get_command_help("Missing command:") << std::endl;
}
}; };
} // namespace MIGRAPHX_INLINE_NS } // namespace MIGRAPHX_INLINE_NS
......
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