Hi,
ran into the same problem. Not 100% sure what I'm doing there, but
the following change fixed it for me:
--- /tmp/cmd2.py 2012-02-17 11:52:52.261190542 -0800
+++ /usr/local/lib/python2.7/dist-packages/cmd2-0.6.3-py2.7.egg/
cmd2.py 2012-02-17 11:55:10.533190145 -0800
@@ -682,7 +682,8 @@
self.blankLineTerminationParser |
self.multilineCommand + pyparsing.SkipTo(stringEnd)
)
-
self.parser.ignore(pyparsing.quotedString).ignore(self.commentGrammars)
+ #NKNK
self.parser.ignore(pyparsing.quotedString).ignore(self.commentGrammars)
+ self.parser.ignore(self.commentGrammars)
inputMark = pyparsing.Literal('<')
inputMark.setParseAction(lambda x: '')
@@ -693,7 +694,8 @@
# as in "lesser than"
self.inputParser = inputMark + pyparsing.Optional(inputFrom)
+ pyparsing.Optional('>') + \
pyparsing.Optional(fileName) +
(pyparsing.stringEnd | '|')
-
self.inputParser.ignore(pyparsing.quotedString).ignore(self.commentGrammars).ignore(self.commentInProgress)
+ #NKNK
self.inputParser.ignore(pyparsing.quotedString).ignore(self.commentGrammars).ignore(self.commentInProgress)
+
self.inputParser.ignore(self.commentGrammars).ignore(self.commentInProgress)
def preparse(self, raw, **kwargs):
return raw
Python is ws-sensitive, so not sure if that patch can be automatically
applied correctly.
</nk>