diff options
author | Rene Scharfe <rene.scharfe@lsrfire.ath.cx> | 2006-08-10 17:02:31 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-10 14:14:24 -0700 |
commit | 6f05b57da8e82c471ea6765da67e813d496ed278 (patch) | |
tree | 7bb2d60ef58d68e3c151d84858a86c3ed582daf6 /verify-pack.c | |
parent | 83a2b841d6b90e6f4b797df40ed3a105364574b6 (diff) | |
download | git-6f05b57da8e82c471ea6765da67e813d496ed278.tar.gz |
git-verify-pack: show usage when no pack was specified
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'verify-pack.c')
-rw-r--r-- | verify-pack.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/verify-pack.c b/verify-pack.c index ef00204ad4..7201596bf9 100644 --- a/verify-pack.c +++ b/verify-pack.c @@ -34,6 +34,7 @@ int main(int ac, char **av) int errs = 0; int verbose = 0; int no_more_options = 0; + int nothing_done = 1; while (1 < ac) { char path[PATH_MAX]; @@ -50,8 +51,13 @@ int main(int ac, char **av) 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; } |