From 6eb0ea77389baca06e0972d184470704bece0e1d Mon Sep 17 00:00:00 2001 From: Aayush Anand Date: Sat, 12 Nov 2022 20:24:36 +0530 Subject: [PATCH] added fix for issue #235 --- include/argparse/argparse.hpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/include/argparse/argparse.hpp b/include/argparse/argparse.hpp index f4e4c6b..0a8e8b5 100644 --- a/include/argparse/argparse.hpp +++ b/include/argparse/argparse.hpp @@ -1365,13 +1365,7 @@ public: // Add any options inline here for (const auto &argument : this->m_optional_arguments) { - if (argument.m_names.front() == "-v") { - continue; - } else if (argument.m_names.front() == "-h") { - stream << " [-h]"; - } else { - stream << " " << argument.get_inline_usage(); - } + stream << " " << argument.get_inline_usage(); } // Put positional arguments after the optionals for (const auto &argument : this->m_positional_arguments) {