summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-04-29 09:59:13 -0600
committerkotfu <kotfu@kotfu.net>2018-04-29 09:59:13 -0600
commit85c63d41286e62460b3b80c465349a5a0476266c (patch)
tree178aba6ab4b86af1af9d7934b5ea691ab58083fb /cmd2/cmd2.py
parentfd3512a80600a3262030d55ed03f4930757395f6 (diff)
downloadcmd2-git-85c63d41286e62460b3b80c465349a5a0476266c.tar.gz
multilineCommand -> multiline_command
Diffstat (limited to 'cmd2/cmd2.py')
-rwxr-xr-xcmd2/cmd2.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 626769fe..136d86b2 100755
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -595,7 +595,7 @@ class Cmd(cmd.Cmd):
"""
# Attributes used to configure the StatementParser, best not to change these at runtime
blankLinesAllowed = False
- multilineCommands = []
+ multiline_commands = []
redirector = '>' # for sending output to file
shortcuts = {'?': 'help', '!': 'shell', '@': 'load', '@@': '_relative_load'}
aliases = dict()
@@ -689,7 +689,7 @@ class Cmd(cmd.Cmd):
self.statement_parser = StatementParser(
allow_redirection=self.allow_redirection,
terminators=self.terminators,
- multilineCommands=self.multilineCommands,
+ multiline_commands=self.multiline_commands,
aliases=self.aliases,
shortcuts=self.shortcuts,
)
@@ -2077,7 +2077,7 @@ class Cmd(cmd.Cmd):
backwards compatibility with the standard library version of cmd.
"""
statement = self.statement_parser.parse(line)
- while statement.multilineCommand and not statement.terminator:
+ while statement.multiline_command and not statement.terminator:
if not self.quit_on_sigint:
try:
newline = self.pseudo_raw_input(self.continuation_prompt)