Title: Intended way to define a mutually exclusive group inside a normal argument group with `with_annotated` · Issue #1687 · python-cmd2/cmd2 · GitHub
Open Graph Title: Intended way to define a mutually exclusive group inside a normal argument group with `with_annotated` · Issue #1687 · python-cmd2/cmd2
X Title: Intended way to define a mutually exclusive group inside a normal argument group with `with_annotated` · Issue #1687 · python-cmd2/cmd2
Description: Question, Bug report or Feature Request Is there an intended way to define a mutually exclusive argument group inside a normal argument group when using the with_annotated decorator? I think this is supported by builtin argparse, while n...
Open Graph Description: Question, Bug report or Feature Request Is there an intended way to define a mutually exclusive argument group inside a normal argument group when using the with_annotated decorator? I think this i...
X Description: Question, Bug report or Feature Request Is there an intended way to define a mutually exclusive argument group inside a normal argument group when using the with_annotated decorator? I think this i...
Opengraph URL: https://github.com/python-cmd2/cmd2/issues/1687
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Intended way to define a mutually exclusive group inside a normal argument group with `with_annotated`","articleBody":"# Question, Bug report or Feature Request \n\nIs there an intended way to define a mutually exclusive argument group *inside* a normal argument group when using the `with_annotated` decorator?\n\nI think this is supported by builtin `argparse`, while nested argument groups and normal argument groups inside mutually exclusive argument groups are not supported at least since `Python 3.11`. See [argparse](https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.add_argument_group)\n\n","author":{"url":"https://github.com/neoniobium","@type":"Person","name":"neoniobium"},"datePublished":"2026-06-10T14:25:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/1687/cmd2/issues/1687"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:031b8501-e2b8-f836-95eb-ac6c3813748c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8070:71B10:121B2B2:19023CE:6A4DE19D |
| html-safe-nonce | 6c66a71fa3fd279f9f5b8a4cfdb2bf02149872765496ff38e13112272eb9d307 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDcwOjcxQjEwOjEyMUIyQjI6MTkwMjNDRTo2QTRERTE5RCIsInZpc2l0b3JfaWQiOiIxNzE4NzU2ODQ0NjEwOTA0NDc3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 54037e73327da39de3a60b3ffb7f6e6247f0feb08ffdc6d9cf798c17bf1db2ca |
| hovercard-subject-tag | issue:4632160661 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-cmd2/cmd2/1687/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3d70832a4b11c4a16374bf13289470c3be2c575274534e63254f41fce654901c/python-cmd2/cmd2/issues/1687 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3d70832a4b11c4a16374bf13289470c3be2c575274534e63254f41fce654901c/python-cmd2/cmd2/issues/1687 |
| og:image:alt | Question, Bug report or Feature Request Is there an intended way to define a mutually exclusive argument group inside a normal argument group when using the with_annotated decorator? I think this i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | neoniobium |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| 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 | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width