From 65296028f9e90ecfa5c12cc96f3062e0974b0a68 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Wed, 17 Jan 2024 23:35:42 +0800 Subject: [PATCH] fix: filter `False` fields, ref #1 --- boot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boot.py b/boot.py index 5e16014..82701b5 100755 --- a/boot.py +++ b/boot.py @@ -95,7 +95,8 @@ class SyncplayBoot: cli_opts = self.__load_from_args(args) self.__debug('Command line options', cli_opts) - self.__opts = env_opts | cfg_opts | cli_opts + options = env_opts | cfg_opts | cli_opts + self.__opts = {x: y for x, y in options.items() if y != False} self.__debug('Bootstrap final options', self.__opts) def __load_from_args(self, raw_args: list[str]) -> dict[str, Any]: