diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-02-12 23:15:19 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-02-12 23:15:19 +0000 |
commit | 902fe45b065743cffa8b088855ce9e4f8bcb4c28 (patch) | |
tree | eae7f3fdd8366593380bd3ca210cdeb967b0a516 /example.py | |
parent | baf06d035442853d656a78d728a468dc8b8d0178 (diff) | |
download | cliapp-902fe45b065743cffa8b088855ce9e4f8bcb4c28.tar.gz |
Support --output option.
Diffstat (limited to 'example.py')
-rw-r--r-- | example.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -29,7 +29,7 @@ class ExampleApp(cliapp.Application): def process_input_line(self, name, line): if self['pattern'] in line: - print line, + self.output.write(line) ExampleApp(version='0.1.2').run() |