From e326aed70ef811f77b2ec21a8f4ec315f2028403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 19 Dec 2024 21:41:14 +0100 Subject: [PATCH] gdctl: Display booleans as yes / no Slightly more human readible and less programmer speak. Part-of: --- tools/gdctl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/gdctl b/tools/gdctl index 4b0ca244f..c8211edea 100755 --- a/tools/gdctl +++ b/tools/gdctl @@ -120,6 +120,8 @@ def print_properties(*, level, lines, properties): if isinstance(value, list): elements_string = ", ".join([str(element) for element in value]) value_string = f"[{elements_string}]" + elif isinstance(value, bool): + value_string = "yes" if value else "no" else: value_string = str(value)