From bb83090afcd12893c301ef14869e84beda43ccb9 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 21 Jul 2011 21:15:09 +0200 Subject: Add the possibility to add (or not) unsupported fileformat to outputed archives fileformat (invasive patch, sorry about that). --- cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cli.py') diff --git a/cli.py b/cli.py index a19b8ce..b9c8a5c 100755 --- a/cli.py +++ b/cli.py @@ -12,6 +12,8 @@ __version__ = '0.1' def parse(): parser = optparse.OptionParser(usage='%prog [options] filename') + parser.add_option('--add2archive', '-a', action='store_true', default=False, + help='Add to outputed archive non-supported filetypes') parser.add_option('--backup', '-b', action='store_true', default=False, help='Keep a backup copy') parser.add_option('--check', '-c', action='store_true', default=False, @@ -91,7 +93,8 @@ def main(): func = clean_meta for filename in filenames: - class_file = mat.create_class_file(filename, args.backup) + class_file = mat.create_class_file(filename, args.backup, + args.add2archive) if class_file is not None: func(class_file, filename) -- cgit v1.3