From 88b45e12b0c2c9e7f8e386504f2d6808f396560b Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Wed, 13 Mar 2019 23:33:58 -0400 Subject: First stage of attribute refactoring The following are now arguments to cmd2.Cmd.__init__() instead of class attributes: * allow_redirection * multiline_commands * terminators * shortcuts Added a couple read-only properties for convenience of cmd2.Cmd accessing immutable members from self.statement_parser --- examples/arg_print.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/arg_print.py') diff --git a/examples/arg_print.py b/examples/arg_print.py index 18d21787..a7b938e3 100755 --- a/examples/arg_print.py +++ b/examples/arg_print.py @@ -24,7 +24,7 @@ class ArgumentAndOptionPrinter(cmd2.Cmd): # Make sure to call this super class __init__ *after* setting and/or updating shortcuts super().__init__() # NOTE: It is critical that the super class __init__ method be called AFTER updating certain parameters which - # are not settable at runtime. This includes the shortcuts, multiline_commands, etc. + # are not settable at runtime. This includes the shortcuts, etc. def do_aprint(self, statement): """Print the argument string this basic command is called with.""" -- cgit v1.2.1