mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-20 06:02:46 +08:00
builtins: set_color: remove unhandled -v/--version flag
Invoking `set_color -v` crashes fish.
This commit is contained in:
parent
8c4bbe89e1
commit
dd7b177d72
|
@ -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'},
|
||||
{}};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user