mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Use consistent quoting in wgetopt
darcs-hash:20060209215120-ac50b-4dda64a6791be33b6493899714485d55372ca8ea.gz
This commit is contained in:
parent
18279c3867
commit
28f65c07b0
1 changed files with 6 additions and 6 deletions
12
wgetopt.c
12
wgetopt.c
|
@ -534,7 +534,7 @@ int long_only;
|
|||
if (ambig && !exact)
|
||||
{
|
||||
if (wopterr)
|
||||
fwprintf (stderr, _(L"%ls: Option `%ls' is ambiguous\n"),
|
||||
fwprintf (stderr, _(L"%ls: Option '%ls' is ambiguous\n"),
|
||||
argv[0], argv[woptind]);
|
||||
nextchar += wcslen (nextchar);
|
||||
woptind++;
|
||||
|
@ -558,12 +558,12 @@ int long_only;
|
|||
if (argv[woptind - 1][1] == '-')
|
||||
/* --option */
|
||||
fwprintf (stderr,
|
||||
_(L"%ls: Option `--%ls' doesn't allow an argument\n"),
|
||||
_(L"%ls: Option '--%ls' doesn't allow an argument\n"),
|
||||
argv[0], pfound->name);
|
||||
else
|
||||
/* +option or -option */
|
||||
fwprintf (stderr,
|
||||
_(L"%ls: Option `%lc%ls' doesn't allow an argument\n"),
|
||||
_(L"%ls: Option '%lc%ls' doesn't allow an argument\n"),
|
||||
argv[0], argv[woptind - 1][0], pfound->name);
|
||||
}
|
||||
nextchar += wcslen (nextchar);
|
||||
|
@ -577,7 +577,7 @@ int long_only;
|
|||
else
|
||||
{
|
||||
if (wopterr)
|
||||
fwprintf (stderr, _(L"%ls: Option `%ls' requires an argument\n"),
|
||||
fwprintf (stderr, _(L"%ls: Option '%ls' requires an argument\n"),
|
||||
argv[0], argv[woptind - 1]);
|
||||
nextchar += wcslen (nextchar);
|
||||
return optstring[0] == ':' ? ':' : '?';
|
||||
|
@ -605,11 +605,11 @@ int long_only;
|
|||
{
|
||||
if (argv[woptind][1] == '-')
|
||||
/* --option */
|
||||
fwprintf (stderr, _(L"%ls: Unrecognized option `--%ls'\n"),
|
||||
fwprintf (stderr, _(L"%ls: Unrecognized option '--%ls'\n"),
|
||||
argv[0], nextchar);
|
||||
else
|
||||
/* +option or -option */
|
||||
fwprintf (stderr, _(L"%ls: Unrecognized option `%lc%ls'\n"),
|
||||
fwprintf (stderr, _(L"%ls: Unrecognized option '%lc%ls'\n"),
|
||||
argv[0], argv[woptind][0], nextchar);
|
||||
}
|
||||
nextchar = (wchar_t *) L"";
|
||||
|
|
Loading…
Reference in a new issue