Fix bad error message for certain options.

https://github.com/fish-shell/fish-shell/issues/979
This commit is contained in:
ridiculousfish 2013-08-26 21:10:02 -07:00
parent 7a1bedcab6
commit ec1037fcbc

View file

@ -638,6 +638,7 @@ _wgetopt_internal(int argc, wchar_t *const *argv, const wchar_t *optstring, cons
fwprintf(stderr, _(L"%ls: Invalid option -- %lc\n"), argv[0], c);
}
woptopt = c;
woptind++;
return '?';
}
if (temp[1] == ':')