Merge pull request #238 from aayush749/fix#235

Added a fix for issue #235
This commit is contained in:
Pranav 2022-11-13 16:14:44 -06:00 committed by GitHub
commit f901d9edb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1365,13 +1365,7 @@ public:
// Add any options inline here // Add any options inline here
for (const auto &argument : this->m_optional_arguments) { for (const auto &argument : this->m_optional_arguments) {
if (argument.m_names.front() == "-v") { stream << " " << argument.get_inline_usage();
continue;
} else if (argument.m_names.front() == "-h") {
stream << " [-h]";
} else {
stream << " " << argument.get_inline_usage();
}
} }
// Put positional arguments after the optionals // Put positional arguments after the optionals
for (const auto &argument : this->m_positional_arguments) { for (const auto &argument : this->m_positional_arguments) {