mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 17:30:59 +01:00
Merge pull request #2825 from MrQubo/allow-off-as-falsy
Allow 'off' as falsy value
This commit is contained in:
commit
e92cb2ee81
2 changed files with 14 additions and 1 deletions
13
news/allow_off_as_falsy.rst
Normal file
13
news/allow_off_as_falsy.rst
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
**Added:**
|
||||||
|
|
||||||
|
* 'off' can be passed as falsy value to all flags accepting boolean argument.
|
||||||
|
|
||||||
|
**Changed:** None
|
||||||
|
|
||||||
|
**Deprecated:** None
|
||||||
|
|
||||||
|
**Removed:** None
|
||||||
|
|
||||||
|
**Fixed:** None
|
||||||
|
|
||||||
|
**Security:** None
|
|
@ -1185,7 +1185,7 @@ def logfile_opt_to_str(x):
|
||||||
|
|
||||||
|
|
||||||
_FALSES = LazyObject(
|
_FALSES = LazyObject(
|
||||||
lambda: frozenset(["", "0", "n", "f", "no", "none", "false"]), globals(), "_FALSES"
|
lambda: frozenset(["", "0", "n", "f", "no", "none", "false", "off"]), globals(), "_FALSES"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue