This commit is contained in:
@ -63,9 +63,9 @@ int main(int argc, char* argv[]) {
|
||||
if (arg_count < info->min_args || (info->max_args != -1 && arg_count > info->max_args)) {
|
||||
std::cerr << "Invalid number of arguments for command: " << cmd << std::endl;
|
||||
std::cerr << "Usage: " << std::endl;
|
||||
std::cout << " " << info->help_usage
|
||||
<< std::string(' ', std::max(1, (int)(30 - info->help_usage.length())))
|
||||
<< info->help_description << std::endl;
|
||||
std::cout << " ";
|
||||
print_left_aligned(info->help_usage,30);
|
||||
std::cout << info->help_description << std::endl;
|
||||
return 1;
|
||||
}
|
||||
CommandContext ctx{args[0], cmd, std::vector<std::string>(args.begin() + 2, args.end())};
|
||||
|
Reference in New Issue
Block a user