Skip to content

0.9.20 (November 12, 2019)

Compare
Choose a tag to compare
@kmvanbrunt kmvanbrunt released this 13 Nov 01:24
· 1105 commits to master since this release
2cf4d87
  • Bug Fixes
    • Fixed bug where setting use_ipython to False removed ipy command from the entire cmd2.Cmd class instead of just the instance being created
    • Fix bug where cmd2 ran 'stty sane' command when stdin was not a terminal
  • Enhancements
    • Send all startup script paths to run_script. Previously we didn't do this if the file was empty, but that showed no record of the run_script command in history.
    • Made it easier for developers to override edit command by having do_history no longer call do_edit. This also removes the need to exclude edit command from history list.
    • It is no longer necessary to set the prog attribute of an argparser with subcommands. cmd2 now automatically sets the prog value of it and all its subparsers so that all usage statements contain the top level command name and not sys.argv[0].
  • Breaking changes
    • Some constants were moved from cmd2.py to constants.py
    • cmd2 command decorators were moved to decorators.py. If you were importing them via cmd2's __init__.py, then there will be no issues.