X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-name-rev.c;h=06a38ac8c10126085e6477c205d450da089faae2;hb=8e850a4dbdcda5e7be8367d81fef3f70da0e8294;hp=5352bc87b9ab5177922039cfec48a2fda8bd50a6;hpb=afce435000030e3ad076ef1dd413e0fa314cdcbb;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);