We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c712474 commit 3961057Copy full SHA for 3961057
1 file changed
src/api/options.py
@@ -96,7 +96,16 @@ def value(self, value):
96
if value is not None and self.type is not None and not isinstance(value, self.type):
97
try:
98
if isinstance(value, str) and self.type == bool:
99
- value = {'false': False, 'true': True}[value.lower()]
+ value = {
100
+ 'false': False,
101
+ 'true': True,
102
+ 'off': False,
103
+ 'on': True,
104
+ '-': False,
105
+ '+': True,
106
+ 'no': False,
107
+ 'yes': True
108
+ }[value.lower()]
109
else:
110
value = self.type(value)
111
except TypeError:
0 commit comments