diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-06-12 14:47:08 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-06-12 14:47:08 +0100 |
commit | dc32b01525ee696f212066dedeb0395e47e19972 (patch) | |
tree | b58bb57975166f8faae9262b635438f30e9d1373 /example.py | |
parent | 825cec78342bf4288060ac8d68a67924120cc099 (diff) | |
download | cliapp-dc32b01525ee696f212066dedeb0395e47e19972.tar.gz |
Fix to use new API.
Diffstat (limited to 'example.py')
-rw-r--r-- | example.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -30,9 +30,9 @@ class ExampleApp(cliapp.Application): '''A little fgrep-like tool.''' def add_settings(self): - self.settings.add_string_list_setting(['pattern', 'e'], - 'search for regular expression PATTERN', - metavar='REGEXP') + self.settings.string_list(['pattern', 'e'], + 'search for regular expression PATTERN', + metavar='REGEXP') # We override process_inputs to be able to do something after the last # input line. |