diff options
Diffstat (limited to 'cmd2/parsing.py')
-rw-r--r-- | cmd2/parsing.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd2/parsing.py b/cmd2/parsing.py index 90484d76..2f22b607 100644 --- a/cmd2/parsing.py +++ b/cmd2/parsing.py @@ -193,12 +193,14 @@ class Statement(str): rtn = self.command_and_args if self.multiline_command: rtn += constants.MULTILINE_TERMINATOR + elif self.terminator: + rtn += self.terminator if self.suffix: rtn += ' ' + self.suffix if self.pipe_to: - rtn += ' | ' + self.pipe_to + rtn += ' | ' + ' '.join(self.pipe_to) if self.output: rtn += ' ' + self.output |