added fix for issue #235

This commit is contained in:
Aayush Anand 2022-11-12 20:24:36 +05:30
parent a8aa3cc999
commit 6eb0ea7738

View File

@ -1365,14 +1365,8 @@ 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();
}
}
// Put positional arguments after the optionals
for (const auto &argument : this->m_positional_arguments) {
if (!argument.m_metavar.empty()) {