mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-03 22:54:39 +00:00
Merge pull request #238 from aayush749/fix#235
Added a fix for issue #235
This commit is contained in:
commit
f901d9edb4
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user