diff options
author | kotfu <kotfu@kotfu.net> | 2018-04-29 16:12:31 -0600 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-04-29 16:12:31 -0600 |
commit | 1097de13a26cab91a3e35bcdba801c19de07b06b (patch) | |
tree | 56cad460e8a3e6b5430495279a84313bbded0957 /examples | |
parent | 1297be25d68b0c8e511b819c906f0d5e0a942606 (diff) | |
download | cmd2-git-1097de13a26cab91a3e35bcdba801c19de07b06b.tar.gz |
Clean up documentation references to pyparsing
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/arg_print.py | 5 |
1 files changed, 1 insertions, 4 deletions
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. |