From 7b2d8a23b978f408cc1fe949e23c0aae97ed54a3 Mon Sep 17 00:00:00 2001 From: kotfu Date: Sun, 29 Apr 2018 15:29:54 -0600 Subject: multilineCommands -> multiline_commands --- 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 18fa483f..bd8ff6be 100755 --- a/examples/arg_print.py +++ b/examples/arg_print.py @@ -30,7 +30,7 @@ class ArgumentAndOptionPrinter(cmd2.Cmd): # Make sure to call this super class __init__ *after* setting commentGrammars 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 commentGrammars, shortcuts, multilineCommands, etc. + # are not settable at runtime. This includes the shortcuts, multiline_commands, etc. def do_aprint(self, arg): """Print the argument string this basic command is called with.""" -- cgit v1.2.1 From 1097de13a26cab91a3e35bcdba801c19de07b06b Mon Sep 17 00:00:00 2001 From: kotfu Date: Sun, 29 Apr 2018 16:12:31 -0600 Subject: Clean up documentation references to pyparsing --- examples/arg_print.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'examples/arg_print.py') diff --git a/examples/arg_print.py b/examples/arg_print.py index bd8ff6be..95e8ff01 100755 --- a/examples/arg_print.py +++ b/examples/arg_print.py @@ -21,13 +21,10 @@ class ArgumentAndOptionPrinter(cmd2.Cmd): """ Example cmd2 application where we create commands that just print the arguments they are called with.""" def __init__(self): - # Uncomment this line to disable Python-style comments but still allow C-style comments - # self.commentGrammars = pyparsing.Or([pyparsing.cStyleComment]) - # Create command aliases which are shorter self.shortcuts.update({'$': 'aprint', '%': 'oprint'}) - # Make sure to call this super class __init__ *after* setting commentGrammars and/or updating shortcuts + # 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. -- cgit v1.2.1