X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=builtin-name-rev.c;h=06a38ac8c10126085e6477c205d450da089faae2;hb=8f5e3ca7d1d9c987c5a50934f1acdbad44163f3b;hp=5352bc87b9ab5177922039cfec48a2fda8bd50a6;hpb=7be9467204de4680e84c366cb30ff05c1c10edbd;p=git.git diff --git a/builtin-name-rev.c b/builtin-name-rev.c index 5352bc87b..06a38ac8c 100644 --- a/builtin-name-rev.c +++ b/builtin-name-rev.c @@ -172,7 +172,7 @@ static void show_name(const struct object *obj, } static char const * const name_rev_usage[] = { - "git-name-rev [options] ( --all | --stdin | ... )", + "git name-rev [options] ( --all | --stdin | ... )", NULL }; @@ -238,7 +238,7 @@ int cmd_name_rev(int argc, const char **argv, const char *prefix) }; git_config(git_default_config, NULL); - argc = parse_options(argc, argv, opts, name_rev_usage, 0); + argc = parse_options(argc, argv, prefix, opts, name_rev_usage, 0); if (!!all + !!transform_stdin + !!argc > 1) { error("Specify either a list, or --all, not both!"); usage_with_options(name_rev_usage, opts);