You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added support for Argpasre sub-commands when using the with_argument_parser or with_argparser_and_unknown_args decorators
See subcommands.py for an example of how to use subcommands
Tab-completion of sub-command names is automatically supported
The __relative_load command is now hidden from the help menu by default
This command is not intended to be called from the command line, only from within scripts
The set command now has an additional -a/--all option to also display read-only settings
The history command can now run, edit, and save prior commands, in addition to displaying prior commands.
The history command can now automatically generate a transcript file for regression testing
This makes creating regression tests for your cmd2 application trivial
Commands Removed
The cmdenvironment has been removed and its functionality incorporated into the -a/--all argument to set
The show command has been removed. Its functionality has always existing within set and continues to do so
The save command has been removed. The capability to save commands is now part of the history command.
The run command has been removed. The capability to run prior commands is now part of the history command.
Other changes
The edit command no longer allows you to edit prior commands. The capability to edit prior commands is now part of the history command. The edit command still allows you to edit arbitrary files.
the autorun_on_edit setting has been removed.
For Python 3.4 and earlier, cmd2 now has an additional dependency on the contextlib2 module
Deprecations
The old options decorator for optparse-based argument parsing is now deprecated
The old decorator is still present for now, but will be removed in a future release
cmd2 no longer includes optparse.make_option, so if your app needs it import directly from optparse