summaryrefslogtreecommitdiff
path: root/builtin-zip-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin-zip-tree.c')
-rw-r--r--builtin-zip-tree.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/builtin-zip-tree.c b/builtin-zip-tree.c
index 3afb7bde74..4e796338af 100644
--- a/builtin-zip-tree.c
+++ b/builtin-zip-tree.c
@@ -379,3 +379,16 @@ int write_zip_archive(struct archiver_args *args)
return 0;
}
+
+void *parse_extra_zip_args(int argc, const char **argv)
+{
+ for (; argc > 0; argc--, argv++) {
+ const char *arg = argv[0];
+
+ if (arg[0] == '-' && isdigit(arg[1]) && arg[2] == '\0')
+ zlib_compression_level = arg[1] - '0';
+ else
+ die("Unknown argument for zip format: %s", arg);
+ }
+ return NULL;
+}