summaryrefslogtreecommitdiff
path: root/doc/example.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/example.rst')
-rw-r--r--doc/example.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/example.rst b/doc/example.rst
index d22ed89..ee5882f 100644
--- a/doc/example.rst
+++ b/doc/example.rst
@@ -6,17 +6,17 @@ Example
class ExampleApp(cliapp.Application):
def add_settings(self):
- self.settings.string_list(['pattern', 'e'],
+ 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.
def process_inputs(self, args):
self.matches = 0
cliapp.Application.process_inputs(self, args)
self.output.write('There were %s matches.\\n' % self.matches)
-
+
def process_input_line(self, name, line):
for pattern in self.settings['pattern']:
if pattern in line: