summaryrefslogtreecommitdiff
path: root/example.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-06-12 14:47:08 +0100
committerLars Wirzenius <liw@liw.fi>2011-06-12 14:47:08 +0100
commitdc32b01525ee696f212066dedeb0395e47e19972 (patch)
treeb58bb57975166f8faae9262b635438f30e9d1373 /example.py
parent825cec78342bf4288060ac8d68a67924120cc099 (diff)
downloadcliapp-dc32b01525ee696f212066dedeb0395e47e19972.tar.gz
Fix to use new API.
Diffstat (limited to 'example.py')
-rw-r--r--example.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/example.py b/example.py
index 7991948..2b1e5b6 100644
--- a/example.py
+++ b/example.py
@@ -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.