4 ms·
When I was designing the programmatic API for my programmer's spell checker [0], I found that it was easy to get an exit code from something else in the stack a
by epage 5y ago
When I was designing the programmatic API for my programmer's spell checker [0], I found that it was easy to get an exit code from something else in the stack and if they all used 1, there wasn't a way to differentiate. This is the reason I went with sysexists, so I would have a more nuanced codes to reduce the probability of two processes in the stack returning confusable errors.
[0] https://github.com/crate-ci/typos https://github.com/crate-ci/typos