Skip to content

Commit 3b6ed11

Browse files
committed
Updated CHANGELOG and fixed a typo in a type hint
1 parent adcc870 commit 3b6ed11

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 0.9.12 (TBD, 2019)
1+
## 0.9.12 (March TBD, 2019)
22
* Enhancements
33
* Added ability to include command name placeholders in the message printed when trying to run a disabled command.
44
* See docstring for ``disable_command()`` or ``disable_category()`` for more details.
@@ -12,7 +12,11 @@
1212
* ``do_help()`` - when no help information can be found
1313
* ``default()`` - in all cases since this is called when an invalid command name is run
1414
* ``_report_disabled_command_usage()`` - in all cases since this is called when a disabled command is run
15-
* Removed *** from beginning of error messages printed by `do_help()` and `default()`.
15+
* Removed *** from beginning of error messages printed by `do_help()` and `default()`
16+
* Significantly refactored ``cmd.Cmd`` class so that all class attributes got converted to instance attributes, also:
17+
* Added ``allow_redirection``, ``terminators``, ``multiline_commands``, and ``shortcuts`` as optional arguments
18+
to ``cmd.Cmd.__init__()`
19+
* A few instance attributes were moved inside ``StatementParser`` and properties were created for accessing them
1620

1721
## 0.9.11 (March 13, 2019)
1822
* Bug Fixes

cmd2/cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def visible_prompt(self) -> str:
545545
return utils.strip_ansi(self.prompt)
546546

547547
@property
548-
def aliases(self) -> bool:
548+
def aliases(self) -> Dict[str, str]:
549549
"""Read-only property to access the aliases stored in the StatementParser."""
550550
return self.statement_parser.aliases
551551

0 commit comments

Comments
 (0)