summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md8
-rw-r--r--cmd2/cmd2.py2
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