Title: Refactor getting_started.py example to demonstrate best-practices for defining command arguments · Issue #1704 · python-cmd2/cmd2 · GitHub
Open Graph Title: Refactor getting_started.py example to demonstrate best-practices for defining command arguments · Issue #1704 · python-cmd2/cmd2
X Title: Refactor getting_started.py example to demonstrate best-practices for defining command arguments · Issue #1704 · python-cmd2/cmd2
Description: The recommended way to define command arguments in cmd2 is to use either the @with_argparser or @with_annotated decorator. The getting_startedlpy example is our best "Introduction to cmd2" example. As such, it should be fully displaying ...
Open Graph Description: The recommended way to define command arguments in cmd2 is to use either the @with_argparser or @with_annotated decorator. The getting_startedlpy example is our best "Introduction to cmd2" example....
X Description: The recommended way to define command arguments in cmd2 is to use either the @with_argparser or @with_annotated decorator. The getting_startedlpy example is our best "Introduction to cmd2"...
Opengraph URL: https://github.com/python-cmd2/cmd2/issues/1704
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Refactor getting_started.py example to demonstrate best-practices for defining command arguments","articleBody":"The recommended way to define command arguments in `cmd2` is to use either the `@with_argparser` or `@with_annotated` decorator. \n\nThe `getting_startedlpy` example is our best \"Introduction to cmd2\" example. As such, it should be fully displaying recommended best practices. We should refactor it to use both of these decorators in different commands.","author":{"url":"https://github.com/tleonhardt","@type":"Person","name":"tleonhardt"},"datePublished":"2026-07-01T18:21:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1704/cmd2/issues/1704"}
| 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:4d5081eb-7512-0077-826f-8e52b256f859 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A1B0:282357:AC3369:E8B7D5:6A4C8D6D |
| html-safe-nonce | b5fa2db19da341f28b2d59c183003699a8a34162543fc90e2056c9d79d0593cd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUIwOjI4MjM1NzpBQzMzNjk6RThCN0Q1OjZBNEM4RDZEIiwidmlzaXRvcl9pZCI6IjI3MzQzMzE2OTAyOTc4ODgxMTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bdee2397911deabe5731cc255aaf13ff9bd3af159b30960cebb03b701a11f9e9 |
| hovercard-subject-tag | issue:4788175144 |
| 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/1704/issue_layout |
| twitter:image | https://opengraph.githubassets.com/197486ebb398a42d7dad4094f5dd7e9d64feece0387b5a045e905d027dabcf76/python-cmd2/cmd2/issues/1704 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/197486ebb398a42d7dad4094f5dd7e9d64feece0387b5a045e905d027dabcf76/python-cmd2/cmd2/issues/1704 |
| og:image:alt | The recommended way to define command arguments in cmd2 is to use either the @with_argparser or @with_annotated decorator. The getting_startedlpy example is our best "Introduction to cmd2" example.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tleonhardt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| 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 | 7a2dede45637df6b92ddcfe2a557e67d4b5854ae |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width