From 02defb601adcdc9ed8701c723d200e49af228fb7 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 16 May 2011 14:01:06 +0100 Subject: Add exclude argument to FilesystemObject. --- summain | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'summain') 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') -- cgit v1.2.1