提交 6f05b57d 编写于 作者: R Rene Scharfe 提交者: Junio C Hamano

git-verify-pack: show usage when no pack was specified

Signed-off-by: NRene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 83a2b841
......@@ -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;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册