From a44590c19580b7ea3337202714ccc13b357fa4ff Mon Sep 17 00:00:00 2001 From: Brett Date: Tue, 8 Aug 2023 14:08:03 -0400 Subject: [PATCH] add pre/postfix to help --- src/blt/parse/argparse.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/blt/parse/argparse.cpp b/src/blt/parse/argparse.cpp index 02dbd00..39d8d5d 100644 --- a/src/blt/parse/argparse.cpp +++ b/src/blt/parse/argparse.cpp @@ -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); }