| route-pattern | /:user_id/:repository/pull/:id/commits/:range(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:7b4b671a-7cec-24c9-d4d0-9fc721cd3f12 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E61E:DAE6B:35795C4:46F4006:6A65557D |
| html-safe-nonce | ca2d252691e81f6f7b5fca4433e938d63d07419cb9b51b2e25e41020cc0cab50 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjFFOkRBRTZCOjM1Nzk1QzQ6NDZGNDAwNjo2QTY1NTU3RCIsInZpc2l0b3JfaWQiOiI0NzEzMjQzODU0ODIwOTU1NTE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2248425a69903dba3e0917e5cb66ff404a2c5d29f5f208121037226bd8a1c357 |
| hovercard-subject-tag | pull_request:3691117798 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/commits |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python-cmd2/cmd2/pull/1666/commits/f0ad6d7b4ddc97d39e6138033bb45bde4dd688c4 |
| twitter:image | https://avatars.githubusercontent.com/u/67872121?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/67872121?s=400&v=4 |
| og:image:alt | Adds @with_annotated, a type-hint-driven alternative to @with_argparser that builds the parser automatically from a command's signature (positional/option inference, enum/literal/path/collectio... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python-cmd2/cmd2 git https://github.com/python-cmd2/cmd2.git |
| octolytics-dimension-user_id | 17161025 |
| octolytics-dimension-user_login | python-cmd2 |
| octolytics-dimension-repository_id | 51442999 |
| octolytics-dimension-repository_nwo | python-cmd2/cmd2 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 51442999 |
| octolytics-dimension-repository_network_root_nwo | python-cmd2/cmd2 |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 309153364422b3c499922d1a2a6404910a58ed8e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python-cmd2/cmd2/pull/1666/commits/f0ad6d7b4ddc97d39e6138033bb45bde4dd688c4#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-cmd2%2Fcmd2%2Fpull%2F1666%2Fcommits%2Ff0ad6d7b4ddc97d39e6138033bb45bde4dd688c4 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| Code QualityEnforce quality at merge | https://github.com/features/code-quality |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-cmd2%2Fcmd2%2Fpull%2F1666%2Fcommits%2Ff0ad6d7b4ddc97d39e6138033bb45bde4dd688c4 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python-cmd2%2Fcmd2 |
| Reload | https://github.com/python-cmd2/cmd2/pull/1666/commits/f0ad6d7b4ddc97d39e6138033bb45bde4dd688c4 |
| Reload | https://github.com/python-cmd2/cmd2/pull/1666/commits/f0ad6d7b4ddc97d39e6138033bb45bde4dd688c4 |
| Reload | https://github.com/python-cmd2/cmd2/pull/1666/commits/f0ad6d7b4ddc97d39e6138033bb45bde4dd688c4 |
| Please reload this page | https://github.com/python-cmd2/cmd2/pull/1666/commits/f0ad6d7b4ddc97d39e6138033bb45bde4dd688c4 |
|
python-cmd2
| https://github.com/python-cmd2 |
| cmd2 | https://github.com/python-cmd2/cmd2 |
|
Notifications
| https://github.com/login?return_to=%2Fpython-cmd2%2Fcmd2 |
|
Fork
132
| https://github.com/login?return_to=%2Fpython-cmd2%2Fcmd2 |
|
Star
688
| https://github.com/login?return_to=%2Fpython-cmd2%2Fcmd2 |
|
Code
| https://github.com/python-cmd2/cmd2 |
|
Issues
2
| https://github.com/python-cmd2/cmd2/issues |
|
Pull requests
1
| https://github.com/python-cmd2/cmd2/pulls |
|
Discussions
| https://github.com/python-cmd2/cmd2/discussions |
|
Actions
| https://github.com/python-cmd2/cmd2/actions |
|
Projects
| https://github.com/python-cmd2/cmd2/projects |
|
Security and quality
0
| https://github.com/python-cmd2/cmd2/security |
|
Insights
| https://github.com/python-cmd2/cmd2/pulse |
|
Code
| https://github.com/python-cmd2/cmd2 |
|
Issues
| https://github.com/python-cmd2/cmd2/issues |
|
Pull requests
| https://github.com/python-cmd2/cmd2/pulls |
|
Discussions
| https://github.com/python-cmd2/cmd2/discussions |
|
Actions
| https://github.com/python-cmd2/cmd2/actions |
|
Projects
| https://github.com/python-cmd2/cmd2/projects |
|
Security and quality
| https://github.com/python-cmd2/cmd2/security |
|
Insights
| https://github.com/python-cmd2/cmd2/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython-cmd2%2Fcmd2%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython-cmd2%2Fcmd2%2Fissues%2Fnew%2Fchoose |
| tleonhardt | https://github.com/tleonhardt |
| main | https://github.com/python-cmd2/cmd2/tree/main |
| feat/annotated-argparse | https://github.com/python-cmd2/cmd2/tree/feat/annotated-argparse |
|
Conversation
31
| https://github.com/python-cmd2/cmd2/pull/1666 |
|
Commits
29
| https://github.com/python-cmd2/cmd2/pull/1666/commits |
|
Checks
28
| https://github.com/python-cmd2/cmd2/pull/1666/checks |
|
Files changed
| https://github.com/python-cmd2/cmd2/pull/1666/files |
| Please reload this page | https://github.com/python-cmd2/cmd2/pull/1666/commits/f0ad6d7b4ddc97d39e6138033bb45bde4dd688c4 |
|
feat: Experimental annotated argparse
| https://github.com/python-cmd2/cmd2/pull/1666/commits/f0ad6d7b4ddc97d39e6138033bb45bde4dd688c4#top |
|
Show all changes
29 commits
| https://github.com/python-cmd2/cmd2/pull/1666/files |
|
7e41c10
feat: add annotated argparse building
KelvinChung2000 May 6, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/7e41c10f179e1419df3c0a5972d33784a2c997bc |
|
f140150
chore: fix rebase
KelvinChung2000 May 15, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/f140150b151d5d3a18887d0d8a8410c9675b971c |
|
076defc
chore: clean up test
KelvinChung2000 May 15, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/076defcdd81efb8f75aef3ea4e1c2a6cb3be7ea5 |
|
d4756eb
chore: more clean up
KelvinChung2000 May 15, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/d4756eb26b2f1bd964f79647e57a7f2c8d20c95b |
|
bacaab3
chore: move documentation
KelvinChung2000 May 15, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/bacaab3156ea50031f163964ed11b00154720b53 |
|
70dfcf1
fix: address PR review comments on annotated argparse
KelvinChung2000 May 19, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/70dfcf17b3e8bcb768e2384cf2311ce13637952c |
|
98f33ce
feat: add parser customization to annotated argparse
KelvinChung2000 May 19, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/98f33ceb74c6f14dda35e02768e48c3dbce3db7b |
|
c129613
docs: demonstrate formatter_class and parser_class in example
KelvinChung2000 May 19, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/c1296131fef3cbf6df23de95cc6901c3595c988a |
|
e30763e
refactor: require Group for groups/mutually_exclusive_groups
KelvinChung2000 May 19, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/e30763e3baa7b48e3305653ae1c07b9929033687 |
|
d913f06
docs: demonstrate mutually_exclusive_groups in example
KelvinChung2000 May 19, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/d913f06ee367ddce987e389f4265a26951cade4f |
|
b6a9832
chore: format
KelvinChung2000 May 19, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/b6a983284e4ff192ce09f78027144094f444fab9 |
|
bc1157d
Merge branch 'main' into feat/annotated-argparse
tleonhardt May 20, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/bc1157d2a6ccfa6f7025506d70986d41594ffd3c |
|
f05bc31
Adding another argument to an example method to help demonstrate a re…
tleonhardt May 20, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/f05bc31a2184bffa7106c99b508469b10e21cdd7 |
|
3232e13
Fix subtle edge case bug where booleans were accepted as integer lite…
tleonhardt May 20, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/3232e13557d948aa46d0ca0f181efe997c4aa155 |
|
da26c3a
feat: cover 0-or-1 case
KelvinChung2000 May 20, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/da26c3ad7f2e466d5e99a1c17f11d966524ad6a2 |
|
5727076
chore: extend verification
KelvinChung2000 May 20, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/572707621d61f45c5993f4e923e77728b4906f43 |
|
e6790c3
chore: minor clean up
KelvinChung2000 May 20, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/e6790c3c83d27bbee369b531df445dbec5ddc6a2 |
|
4fc726c
chore: a few extra test
KelvinChung2000 May 20, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/4fc726c4a5e39403cef97504c454ee8772dc7bab |
|
c0bb4bb
chore: remove collection type doc and sort
KelvinChung2000 May 21, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/c0bb4bbd1b0be3c5c1db172f599b2281b9d54637 |
|
3746e62
chore: address comment and update test
KelvinChung2000 May 21, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/3746e62923201882cdc15f925006d01c0ff25969 |
|
f0ad6d7
chore: update doc
KelvinChung2000 May 22, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/f0ad6d7b4ddc97d39e6138033bb45bde4dd688c4 |
|
faa2420
feat: better *args and **kwargs handling, with extend test
KelvinChung2000 May 22, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/faa242087e9e58d31a681100ffa47def3bc18f1d |
|
c087b8b
chore: more *args edge case handling
KelvinChung2000 May 22, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/c087b8b8357d378aefd69bc318ade21df3007c7a |
|
06cc398
Merge branch 'main' into feat/annotated-argparse
tleonhardt May 25, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/06cc398880646db3c82477ef66a0d51bb66523ba |
|
5ffbdac
chore: large scale refactor
KelvinChung2000 May 29, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/5ffbdac6e6eda44d929a9e8711a86b4d4f256998 |
|
a4db7ce
Add with_annotated to top-level cmd2 namespace
tleonhardt May 30, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/a4db7cee01b37583104431ec064f572ed8b27dde |
|
a6de465
chore: doc clean up and some more edge cases
KelvinChung2000 May 30, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/a6de465db38d53f8015228db40ce87a2b558885b |
|
b0abc4b
Fix potential infinite recursion when a nested base command is execut…
tleonhardt Jun 1, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/b0abc4b79b2b7d3265150d8c88bce6d3431d3c00 |
|
08f027e
Update details on experimental type annotation feature in CHANGELOG
tleonhardt Jun 2, 2026
| https://github.com/python-cmd2/cmd2/pull/1666/commits/08f027e7cea83fd7baedba7ca9f5b696b9ca61fe |
|
Clear filters
| https://github.com/python-cmd2/cmd2/pull/1666/commits/f0ad6d7b4ddc97d39e6138033bb45bde4dd688c4 |
| Please reload this page | https://github.com/python-cmd2/cmd2/pull/1666/commits/f0ad6d7b4ddc97d39e6138033bb45bde4dd688c4 |
| Please reload this page | https://github.com/python-cmd2/cmd2/pull/1666/commits/f0ad6d7b4ddc97d39e6138033bb45bde4dd688c4 |
|
Prev
| https://github.com/python-cmd2/cmd2/pull/1666/commits/3746e62923201882cdc15f925006d01c0ff25969 |
|
Next
| https://github.com/python-cmd2/cmd2/pull/1666/commits/faa242087e9e58d31a681100ffa47def3bc18f1d |
| Please reload this page | https://github.com/python-cmd2/cmd2/pull/1666/commits/f0ad6d7b4ddc97d39e6138033bb45bde4dd688c4 |
|
| https://github.com/KelvinChung2000 |
| KelvinChung2000 | https://github.com/python-cmd2/cmd2/commits?author=KelvinChung2000 |
|
| https://github.com/python-cmd2/cmd2/blob/main/.github/CODEOWNERS#L15 |
| cmd2/annotated.py | https://github.com/python-cmd2/cmd2/pull/1666/commits/f0ad6d7b4ddc97d39e6138033bb45bde4dd688c4#diff-f9c35cbe40a857c13945f016a8c6d8390cf3d5dd0cde3ac07a8d7c34b40e2085 |
|
View file
| https://github.com/python-cmd2/cmd2/blob/f0ad6d7b4ddc97d39e6138033bb45bde4dd688c4/cmd2/annotated.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python-cmd2/cmd2/pull/1666/commits/{{ revealButtonHref }} |
|
| https://github.com/python-cmd2/cmd2/pull/1666/commits/f0ad6d7b4ddc97d39e6138033bb45bde4dd688c4#diff-f9c35cbe40a857c13945f016a8c6d8390cf3d5dd0cde3ac07a8d7c34b40e2085 |
|
| https://github.com/python-cmd2/cmd2/pull/1666/commits/f0ad6d7b4ddc97d39e6138033bb45bde4dd688c4#diff-f9c35cbe40a857c13945f016a8c6d8390cf3d5dd0cde3ac07a8d7c34b40e2085 |
| Please reload this page | https://github.com/python-cmd2/cmd2/pull/1666/commits/f0ad6d7b4ddc97d39e6138033bb45bde4dd688c4 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |