diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-01-16 20:37:51 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-01-16 20:37:51 +0200 |
commit | 0c5874eefabef0dbfeadb783ea913b6bd220e706 (patch) | |
tree | 3006612fbc8472fe3435f1fed0cf7f8b600f66e6 /example.py | |
parent | 66914ae2ca5ae8ed965ddb5263725132a8de4cff (diff) | |
download | cliapp-0c5874eefabef0dbfeadb783ea913b6bd220e706.tar.gz |
Use add_string_setting in example.
Diffstat (limited to 'example.py')
-rw-r--r-- | example.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -22,7 +22,7 @@ class ExampleApp(cliapp.Application): '''A little fgrep-like tool.''' def add_options(self): - self.parser.add_option('--pattern', '-e', action='store', + self.add_string_setting('pattern', '-e', action='store', help='the pattern to search for') def process_input_line(self, name, line): |