|
|
|
@ -186,9 +186,11 @@ std::string cb::argparser::ArgumentParser::get_help() {
|
|
|
|
if (not positional_arguments.empty()) {
|
|
|
|
if (not positional_arguments.empty()) {
|
|
|
|
help_message += "Positional Arguments:\n";
|
|
|
|
help_message += "Positional Arguments:\n";
|
|
|
|
for (auto &&arg: positional_arguments) {
|
|
|
|
for (auto &&arg: positional_arguments) {
|
|
|
|
|
|
|
|
#ifndef CB_EXCLUDE_FORMATTED_PRINTS
|
|
|
|
help_message += std::format("{:15} {}\n",
|
|
|
|
help_message += std::format("{:15} {}\n",
|
|
|
|
arg.name,
|
|
|
|
arg.name,
|
|
|
|
arg.description);
|
|
|
|
arg.description);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
help_message += "\n";
|
|
|
|
help_message += "\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -196,10 +198,12 @@ std::string cb::argparser::ArgumentParser::get_help() {
|
|
|
|
if (not arguments.empty()) {
|
|
|
|
if (not arguments.empty()) {
|
|
|
|
help_message += "Arguments:\n";
|
|
|
|
help_message += "Arguments:\n";
|
|
|
|
for (auto &&arg: arguments) {
|
|
|
|
for (auto &&arg: arguments) {
|
|
|
|
|
|
|
|
#ifndef CB_EXCLUDE_FORMATTED_PRINTS
|
|
|
|
help_message += std::format("{:5} {:15} {}\n",
|
|
|
|
help_message += std::format("{:5} {:15} {}\n",
|
|
|
|
arg.short_name,
|
|
|
|
arg.short_name,
|
|
|
|
arg.name,
|
|
|
|
arg.name,
|
|
|
|
arg.description);
|
|
|
|
arg.description);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
help_message += "\n";
|
|
|
|
help_message += "\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|