summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-04-29 15:29:54 -0600
committerkotfu <kotfu@kotfu.net>2018-04-29 15:29:54 -0600
commit7b2d8a23b978f408cc1fe949e23c0aae97ed54a3 (patch)
tree2fce238aa94ee0a63dac1a872ea188066e50717d /examples
parent00093dd2cff5b0532c9c6154b396acf49043df66 (diff)
downloadcmd2-git-7b2d8a23b978f408cc1fe949e23c0aae97ed54a3.tar.gz
multilineCommands -> multiline_commands
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/arg_print.py2
-rwxr-xr-xexamples/argparse_example.py2
-rwxr-xr-xexamples/example.py2
-rwxr-xr-xexamples/pirate.py2
4 files changed, 4 insertions, 4 deletions
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."""
diff --git a/examples/argparse_example.py b/examples/argparse_example.py
index e9b377ba..3d436323 100755
--- a/examples/argparse_example.py
+++ b/examples/argparse_example.py
@@ -20,7 +20,7 @@ from cmd2 import Cmd, with_argparser, with_argument_list
class CmdLineApp(Cmd):
""" Example cmd2 application. """
def __init__(self, ip_addr=None, port=None, transcript_files=None):
- self.multilineCommands = ['orate']
+ self.multiline_commands = ['orate']
self.shortcuts.update({'&': 'speak'})
self.maxrepeats = 3
diff --git a/examples/example.py b/examples/example.py
index 612d81e5..35e2c49f 100755
--- a/examples/example.py
+++ b/examples/example.py
@@ -27,7 +27,7 @@ class CmdLineApp(Cmd):
MUMBLE_LAST = ['right?']
def __init__(self):
- self.multilineCommands = ['orate']
+ self.multiline_commands = ['orate']
self.maxrepeats = 3
# Add stuff to settable and shortcuts before calling base class initializer
diff --git a/examples/pirate.py b/examples/pirate.py
index 7fe3884b..bcf9a368 100755
--- a/examples/pirate.py
+++ b/examples/pirate.py
@@ -14,7 +14,7 @@ class Pirate(Cmd):
"""A piratical example cmd2 application involving looting and drinking."""
def __init__(self):
self.default_to_shell = True
- self.multilineCommands = ['sing']
+ self.multiline_commands = ['sing']
self.terminators = Cmd.terminators + ['...']
self.songcolor = 'blue'