From 7f7adaf2fa211e877987aef075affe2a7082dbc5 Mon Sep 17 00:00:00 2001 From: kotfu Date: Mon, 23 Apr 2018 20:41:04 -0600 Subject: More work on multiline --- cmd2/parsing.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd2/parsing.py') 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 -- cgit v1.2.1