From 8adc598e907b8f060dc79c72b5672c6a1bf4a058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Deparis?= Date: Thu, 2 Oct 2025 13:05:38 +0200 Subject: [PATCH] web_config: Support long options separated with = from their value Closes #11861 --- share/tools/web_config/webconfig.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index 39748bd39..f8538501a 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -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