diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-03-16 18:05:22 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-03-16 18:05:22 -0400 |
commit | 3b6ed1151bc417633d2207d9ed1e20b491a4ef24 (patch) | |
tree | 2190a22ea4d261ea5d10f207da9e440af6d11694 | |
parent | adcc870d6f86ac8e5b66323f845c0e92521bc46c (diff) | |
download | cmd2-git-3b6ed1151bc417633d2207d9ed1e20b491a4ef24.tar.gz |
Updated CHANGELOG and fixed a typo in a type hint
-rw-r--r-- | CHANGELOG.md | 8 | ||||
-rw-r--r-- | cmd2/cmd2.py | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d21b33c..3f478cb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.9.12 (TBD, 2019) +## 0.9.12 (March TBD, 2019) * Enhancements * Added ability to include command name placeholders in the message printed when trying to run a disabled command. * See docstring for ``disable_command()`` or ``disable_category()`` for more details. @@ -12,7 +12,11 @@ * ``do_help()`` - when no help information can be found * ``default()`` - in all cases since this is called when an invalid command name is run * ``_report_disabled_command_usage()`` - in all cases since this is called when a disabled command is run - * Removed *** from beginning of error messages printed by `do_help()` and `default()`. + * Removed *** from beginning of error messages printed by `do_help()` and `default()` + * Significantly refactored ``cmd.Cmd`` class so that all class attributes got converted to instance attributes, also: + * Added ``allow_redirection``, ``terminators``, ``multiline_commands``, and ``shortcuts`` as optional arguments + to ``cmd.Cmd.__init__()` + * A few instance attributes were moved inside ``StatementParser`` and properties were created for accessing them ## 0.9.11 (March 13, 2019) * Bug Fixes diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 5d0e038b..d3028961 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -545,7 +545,7 @@ class Cmd(cmd.Cmd): return utils.strip_ansi(self.prompt) @property - def aliases(self) -> bool: + def aliases(self) -> Dict[str, str]: """Read-only property to access the aliases stored in the StatementParser.""" return self.statement_parser.aliases |