diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-01-17 17:34:38 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-01-17 17:34:38 +0200 |
commit | 0276aad21dca06562f9a67fc6ca3bb6d803ccbfd (patch) | |
tree | c309ba07248a7d7b3b171b05a1ab0304e1f5933e /example.py | |
parent | e1e4da473ea19c1fe4ea783e7228f456da7134ae (diff) | |
download | cliapp-0276aad21dca06562f9a67fc6ca3bb6d803ccbfd.tar.gz |
Fix example.py to use add_settings method, not add_options.
Diffstat (limited to 'example.py')
-rw-r--r-- | example.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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): |