summaryrefslogtreecommitdiff
path: root/summain
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-05-16 14:01:06 +0100
committerLars Wirzenius <liw@liw.fi>2011-05-16 14:01:06 +0100
commit02defb601adcdc9ed8701c723d200e49af228fb7 (patch)
treed1db54c76871e2aa4b329f84b23bc83af537f5d4 /summain
parentc93f35d82794aac1948d36e50ce9709e354ef234 (diff)
downloadsummain-02defb601adcdc9ed8701c723d200e49af228fb7.tar.gz
Add exclude argument to FilesystemObject.
Diffstat (limited to 'summain')
-rwxr-xr-xsummain3
1 files changed, 2 insertions, 1 deletions
diff --git a/summain b/summain
index 99719d6..6cee168 100755
--- a/summain
+++ b/summain
@@ -44,6 +44,7 @@ class Summain(cliapp.Application):
def process_args(self, args):
relative = self.settings['relative-paths']
+ exclude = self.settings['exclude']
nn = summainlib.NumberNormalizer()
if self.settings['mangle-paths']:
pn = summainlib.PathNormalizer()
@@ -51,7 +52,7 @@ class Summain(cliapp.Application):
pn = summainlib.SamePath()
for root in args:
for filename in self.files(root):
- o = summainlib.FilesystemObject(filename, nn, pn)
+ o = summainlib.FilesystemObject(filename, nn, pn, exclude)
self.output.write(o.format(root if relative else None))
self.output.write('\n')