mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-05 04:30:53 +08:00
set_color: Print an error for unknown options
This was forgotten, so e.g. calling `set_color --bg foo` results in nothing being printed, which might result in strings being removed - #5443.
This commit is contained in:
parent
7511de8d8d
commit
671d820277
@ -180,6 +180,7 @@ maybe_t<int> builtin_set_color(parser_t &parser, io_streams_t &streams, const wc
|
|||||||
return STATUS_INVALID_ARGS;
|
return STATUS_INVALID_ARGS;
|
||||||
}
|
}
|
||||||
case '?': {
|
case '?': {
|
||||||
|
builtin_unknown_option(parser, streams, L"set_color", argv[w.woptind - 1]);
|
||||||
return STATUS_INVALID_ARGS;
|
return STATUS_INVALID_ARGS;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user