Skip to content

Refactor getting_started.py example to demonstrate best-practices for defining command arguments #1704

Description

@tleonhardt

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 recommended best practices. We should refactor it to use both of these decorators in different commands.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions