mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 01:51:14 -03:00
Fix error for "fish --foo" without option argument
Wgetopt needs a ":" at the beginning to turn on this type of error. I'm not sure why that is now, and we might want to change it (but tbh wgetopt could do with a replacement anyway). Fixes #11049
This commit is contained in:
@@ -532,7 +532,7 @@ fn fish_parse_opt(args: &mut [WString], opts: &mut FishCmdOpts) -> ControlFlow<i
|
||||
const PRINT_DEBUG_CATEGORIES_ARG: char = 2 as char;
|
||||
const PROFILE_STARTUP_ARG: char = 3 as char;
|
||||
|
||||
const SHORT_OPTS: &wstr = L!("+hPilNnvc:C:p:d:f:D:o:");
|
||||
const SHORT_OPTS: &wstr = L!("+:hPilNnvc:C:p:d:f:D:o:");
|
||||
const LONG_OPTS: &[WOption<'static>] = &[
|
||||
wopt(L!("command"), RequiredArgument, 'c'),
|
||||
wopt(L!("init-command"), RequiredArgument, 'C'),
|
||||
|
||||
Reference in New Issue
Block a user