summaryrefslogtreecommitdiff
path: root/example.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-01-17 17:34:38 +0200
committerLars Wirzenius <liw@liw.fi>2011-01-17 17:34:38 +0200
commit0276aad21dca06562f9a67fc6ca3bb6d803ccbfd (patch)
treec309ba07248a7d7b3b171b05a1ab0304e1f5933e /example.py
parente1e4da473ea19c1fe4ea783e7228f456da7134ae (diff)
downloadcliapp-0276aad21dca06562f9a67fc6ca3bb6d803ccbfd.tar.gz
Fix example.py to use add_settings method, not add_options.
Diffstat (limited to 'example.py')
-rw-r--r--example.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/example.py b/example.py
index e1ffc8f..8322e79 100644
--- a/example.py
+++ b/example.py
@@ -14,6 +14,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+'''Example for cliapp framework.'''
+
+
import cliapp
@@ -21,7 +24,7 @@ class ExampleApp(cliapp.Application):
'''A little fgrep-like tool.'''
- def add_options(self):
+ def add_settings(self):
self.add_string_setting(['pattern', 'e'], 'the pattern to search for')
def process_input_line(self, name, line):