pub fn cli_error_and_die(msg: impl AsRef<str>, code: i32) -> !
Print an error message and exit the program with an error code Used for handling high level errors such as invalid parameters