Replace some calls to die(usage_str) with usage(usage_str).

The only change in behaviour should be having a "usage: " prefix
on the output string rather than "fatal: ", and an exit code of
129 rather than 128.

Signed-off-by: Ramsay Allan Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Ramsay Allan Jones
2006-08-03 16:48:41 +01:00
committed by Junio C Hamano
parent 15e593e4d3
commit 8cdf33643d
5 changed files with 7 additions and 7 deletions

View File

@ -46,7 +46,7 @@ int main(int argc, char **argv)
if (!no_more_flags && argv[i][0] == '-') {
if (!strcmp(argv[i], "-t")) {
if (argc <= ++i)
die(hash_object_usage);
usage(hash_object_usage);
type = argv[i];
}
else if (!strcmp(argv[i], "-w")) {
@ -66,8 +66,8 @@ int main(int argc, char **argv)
hash_stdin(type, write_object);
}
else
die(hash_object_usage);
}
usage(hash_object_usage);
}
else {
const char *arg = argv[i];
if (0 <= prefix_length)