changeset 164:5209d230f96b

about to get rid of useTerminatorFrom
author catherine@dellzilla
date Thu, 04 Dec 2008 14:01:16 -0500
parents 61a57c44cd93
children 3dc882a00e53
files cmd2.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cmd2.py	Wed Dec 03 17:21:08 2008 -0500
+++ b/cmd2.py	Thu Dec 04 14:01:16 2008 -0500
@@ -417,9 +417,9 @@
                 s = s.replace(shortcut, expansion + ' ', 1)
                 break
         result = self.parser.parseString(s)
+        result['command'] = result.multilineCommand or result.command        
         if useTerminatorFrom:
             return self.parsed('%s %s%s%s' % (result.command, result.args, useTerminatorFrom.parsed.terminator, useTerminatorFrom.parsed.suffix))
-        result['command'] = result.multilineCommand or result.command
         result['raw'] = raw
         result['clean'] = self.commentGrammars.transformString(result.args)
         result['expanded'] = s