Repository navigation
make duplicate subcommands work - #247
Conversation
Codecov Report
@@ Coverage Diff @@
## master #247 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 12 12
Lines 2556 2566 +10
=====================================
+ Hits 2556 2566 +10
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #247 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 12 12
Lines 2556 2566 +10
=====================================
+ Hits 2556 2566 +10
Continue to review full report at Codecov.
|
…and make sure that executes them over running the same one twice. make duplicate subcommands work
d5ec354 to
01a3934
Compare
|
This looks pretty good. I'd like to add the ability to run app callbacks multiple times in order, with the correct options run each time, but that's a more complex, trickier change. |
|
I'll merge if you think it's ready. |
|
There are some more issues with fallthrough and nested option groups that this doesn't deal with but that is somewhat more complex and I am working on another change that will fix that. But for the moment I think this is fine, and seems to be working. |
This PR is a first cut at making duplicate subcommands work reasonably without adding any extra methods. I added one test case with duplicates. There probably should be a few more tests added about the interactions of duplicate subcommands and subcommands with duplicate names in different option groups.