-
Notifications
You must be signed in to change notification settings - Fork 132
feat: Experimental annotated argparse #1666
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
Merged
Merged
Changes from 25 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
7e41c10
feat: add annotated argparse building
KelvinChung2000 f140150
chore: fix rebase
KelvinChung2000 076defc
chore: clean up test
KelvinChung2000 d4756eb
chore: more clean up
KelvinChung2000 bacaab3
chore: move documentation
KelvinChung2000 70dfcf1
fix: address PR review comments on annotated argparse
KelvinChung2000 98f33ce
feat: add parser customization to annotated argparse
KelvinChung2000 c129613
docs: demonstrate formatter_class and parser_class in example
KelvinChung2000 e30763e
refactor: require Group for groups/mutually_exclusive_groups
KelvinChung2000 d913f06
docs: demonstrate mutually_exclusive_groups in example
KelvinChung2000 b6a9832
chore: format
KelvinChung2000 bc1157d
Merge branch 'main' into feat/annotated-argparse
tleonhardt f05bc31
Adding another argument to an example method to help demonstrate a re…
tleonhardt 3232e13
Fix subtle edge case bug where booleans were accepted as integer lite…
tleonhardt da26c3a
feat: cover 0-or-1 case
KelvinChung2000 5727076
chore: extend verification
KelvinChung2000 e6790c3
chore: minor clean up
KelvinChung2000 4fc726c
chore: a few extra test
KelvinChung2000 c0bb4bb
chore: remove collection type doc and sort
KelvinChung2000 3746e62
chore: address comment and update test
KelvinChung2000 f0ad6d7
chore: update doc
KelvinChung2000 faa2420
feat: better *args and **kwargs handling, with extend test
KelvinChung2000 c087b8b
chore: more *args edge case handling
KelvinChung2000 06cc398
Merge branch 'main' into feat/annotated-argparse
tleonhardt 5ffbdac
chore: large scale refactor
KelvinChung2000 a4db7ce
Add with_annotated to top-level cmd2 namespace
tleonhardt a6de465
chore: doc clean up and some more edge cases
KelvinChung2000 b0abc4b
Fix potential infinite recursion when a nested base command is execut…
tleonhardt 08f027e
Update details on experimental type annotation feature in CHANGELOG
tleonhardt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.