diff options
| author | Catherine Devlin <catherine.devlin@gmail.com> | 2010-02-16 16:33:47 -0500 |
|---|---|---|
| committer | Catherine Devlin <catherine.devlin@gmail.com> | 2010-02-16 16:33:47 -0500 |
| commit | c5b7074f4d7c848f9d2484752ceba84a95dd2484 (patch) | |
| tree | 74254671584ea33e15667b9f0347d1b1e8120f25 /cmd2.py | |
| parent | d308eabe1fa4ffba96d9747caf96cf677a7d7740 (diff) | |
| download | cmd2-git-c5b7074f4d7c848f9d2484752ceba84a95dd2484.tar.gz | |
going to try moving output redirection to outside precmd, postcmd hooks
Diffstat (limited to 'cmd2.py')
| -rwxr-xr-x | cmd2.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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): |
