Closed maxlath closed 5 years ago
sure, but with an option then, because error codes should be for malfunctioning programs, not documents :)
I disagree, non-zero error code seems acceptable for invalid files. You can do, for instance, 1 for file not found and 2 for validation error.
I was expecting the following behavior
instead this is what happens
the reason being that the process exit code is always 0: could there by a
process.exit(1)
in case an error was detected, either by default or with an option passed to the executable?thanks for this great tool!