-
Notifications
You must be signed in to change notification settings - Fork 122
Fix tuple metavar crash in Cmd2HelpFormatter and ArgparseCompleter #975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ple as its metavar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a unit test for the case where metavar
is a tuple and nargs is an integer > 1. Other than that, this looks good.
Codecov Report
@@ Coverage Diff @@
## master #975 +/- ##
==========================================
+ Coverage 97.80% 97.82% +0.02%
==========================================
Files 22 22
Lines 4509 4516 +7
==========================================
+ Hits 4410 4418 +8
+ Misses 99 98 -1
Continue to review full report at Codecov.
|
…se metavar is a tuple
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Looks good. |
Fixes #974