diff --git a/src/bin/fish.rs b/src/bin/fish.rs index 0a7105b17..2a06f3a2c 100644 --- a/src/bin/fish.rs +++ b/src/bin/fish.rs @@ -532,7 +532,7 @@ fn fish_parse_opt(args: &mut [WString], opts: &mut FishCmdOpts) -> ControlFlow] = &[ wopt(L!("command"), RequiredArgument, 'c'), wopt(L!("init-command"), RequiredArgument, 'C'), diff --git a/tests/checks/invocation.fish b/tests/checks/invocation.fish index 19d20562f..dea961559 100644 --- a/tests/checks/invocation.fish +++ b/tests/checks/invocation.fish @@ -111,5 +111,8 @@ $fish --no-config -c 'echo notprinted | and true' # CHECKERR: echo notprinted | and true # CHECKERR: ^~^ +$fish --no-config --features +# CHECKERR: fish: --features: option requires an argument + # Regression test for a hang. echo "set -L" | $fish > /dev/null