This function takes a string as input and returns a boolean based on the string value.
If the string is 'true', it returns true. If the string is 'false', it returns false.
If the string is neither 'true' nor 'false', it logs an error message and terminates the process.
Parameters
string: string
The string to be parsed into a boolean.
Returns boolean
A boolean value based on the input string.
Throws
Will throw an error if the input string is not 'true' or 'false'.
Parses a string into a boolean.
This function takes a string as input and returns a boolean based on the string value. If the string is 'true', it returns true. If the string is 'false', it returns false. If the string is neither 'true' nor 'false', it logs an error message and terminates the process.