Skip to content

Use @with_argument_parser for all methods which require argument parsing #250

@kotfu

Description

@kotfu

Many methods in cmd2 utilize the now deprecated @options decorator, ex. do_pyscript() and do_history(). Other methods like do_save() use pyparsing, which works, but it too should probably be migrated to @with_argument_parser. do_set() does custom argument parsing not utilizing any library. Still other methods do no argument parsing, but probably should, like do_load(). All of these should be moved to argparse based argument processing.

Methods which implement single word commands, like do_quit() and do_shortcuts() could be left to ignore all passed arguments, which is what they do now.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions