builtins: set_color: remove unhandled -v/--version flag

Invoking `set_color -v` crashes fish.

(cherry picked from commit dd7b177d72)
This commit is contained in:
Xiretza 2023-03-05 15:11:26 +01:00 committed by Fabian Boehm
parent 77c92d80ab
commit b1dc7e8697

View File

@ -90,7 +90,7 @@ static void print_colors(io_streams_t &streams, wcstring_list_t args, bool bold,
streams.out.append(str2wcstring(outp.contents()));
}
static const wchar_t *const short_options = L":b:hvoidrcu";
static const wchar_t *const short_options = L":b:hoidrcu";
static const struct woption long_options[] = {{L"background", required_argument, 'b'},
{L"help", no_argument, 'h'},
{L"bold", no_argument, 'o'},
@ -98,7 +98,6 @@ static const struct woption long_options[] = {{L"background", required_argument,
{L"italics", no_argument, 'i'},
{L"dim", no_argument, 'd'},
{L"reverse", no_argument, 'r'},
{L"version", no_argument, 'v'},
{L"print-colors", no_argument, 'c'},
{}};