I see that the command still reports as successful even when it's not:
$ bin/heroics-generate -h "Content-Type: application/json"
Usage: heroics-generate module_name schema_filepath url
heroics-generate configuration-file-path.rb
# Params only allowed when using the first form:
-h, --help Display this screen
-H, --header [HEADER] Include header with all requests
-c, --cache-dir [PATH] Content cache directory (~ is automatically expanded)
$ echo $?
0
This exit code should be non-zero.