diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-05-16 14:01:06 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-05-16 14:01:06 +0100 |
commit | 02defb601adcdc9ed8701c723d200e49af228fb7 (patch) | |
tree | d1db54c76871e2aa4b329f84b23bc83af537f5d4 /summain | |
parent | c93f35d82794aac1948d36e50ce9709e354ef234 (diff) | |
download | summain-02defb601adcdc9ed8701c723d200e49af228fb7.tar.gz |
Add exclude argument to FilesystemObject.
Diffstat (limited to 'summain')
-rwxr-xr-x | summain | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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') |