argclz.types.bool_type#
- argclz.types.bool_type(value)[source]#
Convert a string to a boolean.
- Parameters:
value (str) – the input string to evaluate
- Returns:
False for (‘-’, ‘0’, ‘f’, ‘false’, ‘n’, ‘no’, ‘x’), True for (‘’, ‘+’, ‘1’, ‘t’, ‘true’, ‘yes’, ‘y’)
- Raises:
ValueError – if the string is not recognized as a boolean
- Return type: