Releases: python-cmd2/cmd2
Releases · python-cmd2/cmd2
1.4.0 (November 11, 2020)
- Bug Fixes
- Fixed tab completion crash on Windows
- Enhancements
- Changed how multiline doc string help is formatted to match style of other help messages
1.3.11 (October 1, 2020)
- Bug Fixes
- Fixed issue where quoted redirectors and terminators in aliases and macros were not being restored when read from a startup script.
- Fixed issue where instantiating more than one cmd2-based class which uses the
@as_subcommand_to
decorator resulted in duplicated help text in the base command the subcommands belong to.
1.3.10 (September 17, 2020)
1.3.10 (September 17, 2020)
- Enhancements
- Added user-settable option called
always_show_hint
. If True, then tab completion hints will always display even when tab completion suggestions print. Arguments whose help or hint text is suppressed will not display hints even when this setting is True. - argparse tab completion now groups flag names which run the same action. Optional flags are wrapped in brackets like it is done in argparse usage text.
- default category decorators are now heritable by default and will propagate the category down the class hierarchy until overridden. There's a new optional flag to set heritable to false.
- Added
--silent
flag toalias/macro create
. If used, then no confirmation message will be printed when aliases and macros are created or overwritten. - Added
--with_silent
flag toalias/macro list
. Use this option when saving to a startup script that should silently create aliases and macros.
- Added user-settable option called
- Bug Fixes
- Fixed issue where flag names weren't always sorted correctly in argparse tab completion
Plugin: External Test 0.2.0 (September 20, 2020)
- Updates version to 0.2.0
- Updates documentation to reflect the plugin's new home inside of the cmd2 main repository.
1.3.9 (September 03, 2020)
- Breaking Changes
CommandSet.on_unregister()
is now called as first step in unregistering aCommandSet
and not the last.CommandSet.on_unregistered()
is now the last step.
- Enhancements
- Added
CommandSet.on_registered()
. This is called bycmd2.Cmd
after aCommandSet
is registered and all its commands have been added to the CLI. - Added
CommandSet.on_unregistered()
. This is called bycmd2.Cmd
after aCommandSet
is unregistered and all its commands have been removed from the CLI.
- Added
1.3.8 (August 28, 2020)
- Bug Fixes
- Fixed issue where subcommand added with
@as_subcommand_to
decorator did not display help when called with-h/--help
.
- Fixed issue where subcommand added with
- Enhancements
add_help=False
no longer has to be passed to parsers used in@as_subcommand_to
decorator.
Only pass this if your subcommand should not have the-h/--help
help option (as stated in argparse documentation).
1.3.7 (August 27, 2020)
- Bug Fixes
- Fixes an issue introduced in 1.3.0 with processing command strings containing terminator/separator character(s) that are manually passed to a command that uses argparse.
1.3.6 (August 27, 2020)
- Breaking changes
- The functions cmd2 adds to Namespaces (
get_statement()
andget_handler()
) are nowCmd2AttributeWrapper
objects namedcmd2_statement
andcmd2_handler
. This makes it easy to filter out which attributes in anargparse.Namespace
were added bycmd2
.
- The functions cmd2 adds to Namespaces (
- Deprecations
Namespace.__statement__
will be removed incmd2
2.0.0. UseNamespace.cmd2_statement.get()
going forward.
1.3.5 (August 25, 2020)
- Bug Fixes
- Fixed
RecursionError
when printing anargparse.Namespace
caused by custom attribute cmd2 was adding
- Fixed
- Enhancements
- Added
get_statement()
function toargparse.Namespace
which returns__statement__
attribute
- Added
1.3.4 (August 20, 2020)
- Bug Fixes
- Fixed
AttributeError
whenCommandSet
that usesas_subcommand_to
decorator is loaded duringcmd2.Cmd.__init__()
.
- Fixed
- Enhancements
- Improved exception messages when using mock without
spec=True
. See testing documentation for more details on testing cmd2-based applications with mock.
- Improved exception messages when using mock without