From 5644d501d4f5a8ef8c0768e563943ed36af2c5c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kl=C3=B6tzke?= Date: Thu, 1 Aug 2024 22:08:02 +0200 Subject: [PATCH] scripts: set cmd line color mode immediately If the user gives a color mode on the command line, apply the mode immediately. Otherwise the mode was not applied until some recipes layer was successfully parsed. Because error messages are already colored, that created some inconsistent behaviour. Fixes #578. --- pym/bob/scripts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pym/bob/scripts.py b/pym/bob/scripts.py index 82689438a..08da8f0ca 100644 --- a/pym/bob/scripts.py +++ b/pym/bob/scripts.py @@ -215,6 +215,7 @@ def cmd(): if args.color_mode: from .input import RecipeSet RecipeSet.setColorModeCfg(args.color_mode) + setColorMode(args.color_mode) if args.query_mode: from .input import RecipeSet