# HG changeset patch # User catherine@cordelia # Date 1241451726 14400 # Node ID 540315f06a17088c68024152c872b8d8c64f5bf4 # Parent fd5197498667fec7cee0698f2b6c58a265aafa95 must use unparsed string for py diff -r fd5197498667 -r 540315f06a17 cmd2.py --- a/cmd2.py Wed Apr 29 22:35:24 2009 -0400 +++ b/cmd2.py Mon May 04 11:42:06 2009 -0400 @@ -813,6 +813,7 @@ End with `Ctrl-D` (Unix) / `Ctrl-Z` (Windows), `quit()`, 'exit()`. Non-python commands can be issued with `cmd("your command")`. ''' + arg = arg.parsed.raw[2:].strip() if arg.strip(): interp = InteractiveInterpreter(locals=self.pystate) interp.runcode(arg)