Skip to content

Commit

Permalink
set_color: Print an error for unknown options
Browse files Browse the repository at this point in the history
This was forgotten, so e.g. calling `set_color --bg foo` results in
nothing being printed, which might result in strings being removed - #5443.
  • Loading branch information
faho committed May 27, 2021
1 parent 7511de8 commit 671d820
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/builtin_set_color.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ maybe_t<int> builtin_set_color(parser_t &parser, io_streams_t &streams, const wc
return STATUS_INVALID_ARGS;
}
case '?': {
builtin_unknown_option(parser, streams, L"set_color", argv[w.woptind - 1]);
return STATUS_INVALID_ARGS;
}
default: {
Expand Down

0 comments on commit 671d820

Please sign in to comment.