summaryrefslogtreecommitdiff
path: root/cmd2/parsing.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/parsing.py
parentb3d71457e951d9d382787cb82fdf77f32951337c (diff)
downloadcmd2-git-7f7adaf2fa211e877987aef075affe2a7082dbc5.tar.gz
More work on multiline
Diffstat (limited to 'cmd2/parsing.py')
-rw-r--r--cmd2/parsing.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd2/parsing.py b/cmd2/parsing.py
index ec8e2e84..f4f9a6a3 100644
--- a/cmd2/parsing.py
+++ b/cmd2/parsing.py
@@ -180,6 +180,10 @@ class CommandParser():
# set multiline
if command in self.multilineCommands:
multilineCommand = command
+ # return no arguments if this is a "partial" command,
+ # i.e. we have a multiline command but no terminator yet
+ if not terminator:
+ args = ''
else:
multilineCommand = None