summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 83a2b84)
raw | patch | inline | side by side (parent: 83a2b84)
author | Rene Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Thu, 10 Aug 2006 15:02:31 +0000 (17:02 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 10 Aug 2006 21:14:24 +0000 (14:14 -0700) |
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
verify-pack.c | patch | blob | history |
diff --git a/verify-pack.c b/verify-pack.c
index ef00204ad471820498ebb622a6b9424c295aab0e..7201596bf948094979464eddc1000a1cd5cb2ae6 100644 (file)
--- a/verify-pack.c
+++ b/verify-pack.c
int errs = 0;
int verbose = 0;
int no_more_options = 0;
+ int nothing_done = 1;
while (1 < ac) {
char path[PATH_MAX];
strcpy(path, av[1]);
if (verify_one_pack(path, verbose))
errs++;
+ nothing_done = 0;
}
ac--; av++;
}
+
+ if (nothing_done)
+ usage(verify_pack_usage);
+
return !!errs;
}