summary refs log tree commit diff
path: root/mico-dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'mico-dump.c')
-rw-r--r--mico-dump.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/mico-dump.c b/mico-dump.c
index 37ed025..cd80609 100644
--- a/mico-dump.c
+++ b/mico-dump.c
@@ -82,9 +82,14 @@ get1(struct bitreader *input)
 }
 
 int
-main()
+main(int argc, char *argv[])
 {
-	zip = zip_open("out.zip", ZIP_RDONLY, 0);
+	if (argc < 2) {
+		fprintf(stderr, "usage: %s input.zip\n", argv[0]);
+		exit(-1);
+	}
+
+	zip = zip_open(argv[1], ZIP_RDONLY, 0);
 
 	int entries = zip_get_num_entries(zip, 0);