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

Format

parent f83bf5a5
......@@ -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 = " ";
......
......@@ -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
......
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