mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 00:01:15 -03:00
web_config: Support long options separated with = from their value
Closes #11861
This commit is contained in:
committed by
Johannes Altmanninger
parent
c884c08257
commit
8adc598e90
@@ -263,6 +263,10 @@ def parse_color(color_str):
|
||||
) -> str:
|
||||
if comp.startswith(long_opt):
|
||||
c = comp[len(long_opt) :]
|
||||
if c[0] == "=":
|
||||
# There was a = between the long option and the value.
|
||||
# i.e. support also --background=red, not just --background red
|
||||
c = c[1:]
|
||||
parsed_c = parse_one_color(c)
|
||||
# We prefer the unparsed version - if it says "brgreen", we use brgreen,
|
||||
# instead of 00ff00
|
||||
|
||||
Reference in New Issue
Block a user