Commit b588a443 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Factorize a translated message

parent 420ab47b
...@@ -707,12 +707,15 @@ int ...@@ -707,12 +707,15 @@ int
{ {
if (argv[optind][1] == '-') if (argv[optind][1] == '-')
/* --option */ /* --option */
fprintf(stderr, _("%s: unrecognized option `--%s'\n"), fprintf(stderr, _("%s: unrecognized option `%s%s'\n"),
argv[0], nextchar); "--", argv[0], nextchar);
else else
{
char t[2] = { argv[optind][0], '\0' };
/* +option or -option */ /* +option or -option */
fprintf(stderr, _("%s: unrecognized option `%c%s'\n"), fprintf(stderr, _("%s: unrecognized option `%s%s'\n"),
argv[0], argv[optind][0], nextchar); argv[0], t, nextchar);
}
} }
nextchar = (char *) ""; nextchar = (char *) "";
optind++; optind++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment