summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorCatherine Devlin <catherine.devlin@gmail.com>2010-02-16 16:33:47 -0500
committerCatherine Devlin <catherine.devlin@gmail.com>2010-02-16 16:33:47 -0500
commitc5b7074f4d7c848f9d2484752ceba84a95dd2484 (patch)
tree74254671584ea33e15667b9f0347d1b1e8120f25 /cmd2.py
parentd308eabe1fa4ffba96d9747caf96cf677a7d7740 (diff)
downloadcmd2-git-c5b7074f4d7c848f9d2484752ceba84a95dd2484.tar.gz
going to try moving output redirection to outside precmd, postcmd hooks
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd2.py b/cmd2.py
index 2a76fd92..05fd267f 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -759,6 +759,8 @@ class Cmd(cmd.Cmd):
This (`cmd2`) version of `onecmd` already override's `cmd`'s `onecmd`.
"""
+ # TODO: output from precmd and postcmd goes untrapped... and I don't
+ # know how to fix it...
if not line:
return self.emptyline()
if not pyparsing.Or(self.commentGrammars).setParseAction(lambda x: '').transformString(line):