Add 'y' and 'yes' as bool options

This commit is contained in:
McCloudS
2024-03-21 08:12:57 -06:00
committed by GitHub
parent ecb2704171
commit 3b1f0cb626

View File

@@ -27,7 +27,7 @@ import re
def convert_to_bool(in_bool):
# Convert the input to string and lower case, then check against true values
return str(in_bool).lower() in ('true', 'on', '1')
return str(in_bool).lower() in ('true', 'on', '1', 'y', 'yes')
# Replace your getenv calls with appropriate default values here
plextoken = os.getenv('PLEXTOKEN', 'token here')