nomnom
nomnom copied to clipboard
Use console.error when a non-zero exit code is used
When a CLI tool using nomnom is hooked up to write to stdout, it's problematic if console.log is used to report usage errors, as the error message would then be written to stdout instead of stderr.
This commit makes it use console.error instead for non-zero exit codes, which fixes our use case.