summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-04-23 20:41:04 -0600
committerkotfu <kotfu@kotfu.net>2018-04-23 20:41:04 -0600
commit7f7adaf2fa211e877987aef075affe2a7082dbc5 (patch)
treecc63c4b32acb1d9b6181601b47ec4a8ce9416a27 /cmd2/cmd2.py
parentb3d71457e951d9d382787cb82fdf77f32951337c (diff)
downloadcmd2-git-7f7adaf2fa211e877987aef075affe2a7082dbc5.tar.gz
More work on multiline
Diffstat (limited to 'cmd2/cmd2.py')
-rwxr-xr-xcmd2/cmd2.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 8aed075b..d9cbd2b0 100755
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -2181,10 +2181,10 @@ class Cmd(cmd.Cmd):
# raise EmptyStatement()
# statement = self.parser_manager.parsed(line) # deleteme
statement = self.command_parser.parseString(line)
- #while statement.parsed.multilineCommand and (statement.parsed.terminator == ''):
- # statement = '%s\n%s' % (statement.parsed.raw,
- # self.pseudo_raw_input(self.continuation_prompt))
- # statement = self.parser_manager.parsed(statement)
+ while statement.multilineCommand and (statement.terminator == ''):
+ line = '%s\n%s' % (statement.raw,
+ self.pseudo_raw_input(self.continuation_prompt))
+ statement = self.command_parser.parseString(line)
if not statement.command:
raise EmptyStatement()
return statement