add pre/postfix to help

v1
Brett 2023-08-08 14:08:03 -04:00
parent 7e05fb3d60
commit a44590c195
1 changed files with 10 additions and 0 deletions

View File

@ -438,6 +438,11 @@ namespace blt
void arg_parse::printHelp() const
{
if (!user_args.prefix.empty())
{
std::cout << "\n";
std::cout << user_args.prefix;
}
std::cout << "\npositional arguments:\n";
// spaces per tab
const size_t tab_size = 8;
@ -479,6 +484,11 @@ namespace blt
std::cout << arg->a_help << "\n";
}
}
if (!user_args.postfix.empty())
{
std::cout << user_args.postfix;
std::cout << "\n";
}
std::exit(0);
}