diff options
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/settings.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/settings.py b/src/utils/settings.py index 8040c2e8..97fe885b 100644 --- a/src/utils/settings.py +++ b/src/utils/settings.py @@ -24,8 +24,8 @@ class Setting(object): def format(self, value: typing.Any): return repr(value) -SETTING_TRUE = ["true", "yes", "on", "y"] -SETTING_FALSE = ["false", "no", "off", "n"] +SETTING_TRUE = ["true", "yes", "on", "y", "1"] +SETTING_FALSE = ["false", "no", "off", "n", "0"] class BoolSetting(Setting): example: typing.Optional[str] = "on" def parse(self, value: str) -> typing.Any: |
