]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/revert.c
Merge branch 'nd/the-index'
[thirdparty/git.git] / builtin / revert.c
index df662d43247536813a14ac10a4e5001b255e82b4..a47b53ceaff92d4079b4ea73a61ce1552ad66b05 100644 (file)
@@ -69,7 +69,8 @@ static int option_parse_m(const struct option *opt,
 
        replay->mainline = strtol(arg, &end, 10);
        if (*end || replay->mainline <= 0)
-               return opterror(opt, "expects a number greater than zero", 0);
+               return error(_("option `%s' expects a number greater than zero"),
+                            opt->long_name);
 
        return 0;
 }