Mercurial > python-cmd2
diff cmd2.py @ 131:d94b79807da0
noSpecialParse
author | catherine@dellzilla |
---|---|
date | Fri, 07 Nov 2008 16:13:53 -0500 |
parents | 64ad2b28d69d |
children |
line wrap: on
line diff
--- a/cmd2.py Fri Nov 07 14:49:32 2008 -0500 +++ b/cmd2.py Fri Nov 07 16:13:53 2008 -0500 @@ -242,11 +242,10 @@ command = s.split()[0] if self.caseInsensitive: command = command.lower() - '''if command in self.noSpecialParse: - result['statement'] = result['upToIncluding'] = result['unterminated'] = result.fullStatement + if command in self.noSpecialParse: result['command'] = command - result['args'] = ' '.join(result.fullStatement.split()[1:]) - return result''' + result['statement'] = result.fullStatement + return result if s[0] in self.shortcuts: s = self.shortcuts[s[0]] + ' ' + s[1:] result['statement'] = s