@@ -134,7 +134,7 @@ static int write_option_parse_split(const struct option *opt, const char *arg,
else if (!strcmp(arg, "replace"))
*flags = COMMIT_GRAPH_SPLIT_REPLACE;
else
- die(_("unrecognized --split argument, %s"), arg);
+ die(_("unrecognized %s argument '%s'"), "--split", arg);
return 0;
}
@@ -106,7 +106,7 @@ static int option_parse_type(const struct option *opt, const char *arg,
else if (!strcmp(arg, "color"))
new_type = TYPE_COLOR;
else
- die(_("unrecognized --type argument, %s"), arg);
+ die(_("unrecognized %s argument '%s'"), "--type", arg);
}
to_type = opt->value;
@@ -24,7 +24,7 @@ static int option_parse_type(const struct option *opt, const char *arg,
else if (!strcmp(arg, "ulong"))
*cmdmode = ENV_HELPER_TYPE_ULONG;
else
- die(_("unrecognized --type argument, %s"), arg);
+ die(_("unrecognized %s argument '%s'"), "--type", arg);
return 0;
}
@@ -750,7 +750,7 @@ static int maintenance_opt_schedule(const struct option *opt, const char *arg,
*priority = parse_schedule(arg);
if (!*priority)
- die(_("unrecognized --schedule argument '%s'"), arg);
+ die(_("unrecognized %s argument '%s'"), "--schedule", arg);
return 0;
}
@@ -2393,7 +2393,7 @@ static int maintenance_opt_scheduler(const struct option *opt, const char *arg,
*scheduler = parse_scheduler(arg);
if (*scheduler == SCHEDULER_INVALID)
- return error(_("unrecognized --scheduler argument '%s'"), arg);
+ return error(_("unrecognized %s argument '%s'"), "--scheduler", arg);
return 0;
}