list implemented
Some checks failed
Dropshell Test / Build_and_Test (push) Failing after 20s

This commit is contained in:
Your Name
2025-05-11 13:20:15 +12:00
parent 62191cceed
commit 92b80d6bb7
5 changed files with 71 additions and 14 deletions

View File

@ -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())};