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:
Fabian Boehm
2025-01-17 09:52:53 +01:00
parent ba4ead6ead
commit fb2caf63e5
2 changed files with 4 additions and 1 deletions

View File

@@ -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