blacktex
blacktex copied to clipboard
Exit code
Playing around with blacktex, am I right in thinking that it returns an error code if anything was changed? It's definitely helpful to have a way of checking whether a document is valid, but it's also useful to be able to tell the difference between a successful pass of the formatter and a failed pass of the formatter without having to dig into the error code itself. Would you consider an exit code of 0 for formats which succeeded but changed things, but a --check
flag which would raise an error code if anything needed changing?
It should actually do that if you use --in-place
.
Sorry, just to clarify - does --in-place
raise nonzero for unformatted files, but still format them anyway? And that's different behaviour to being unable to format a file? If you give multiple infiles, does it abort halfway through or wait until the end?
I don't know by heart. Best try it out and let me know if you find anything weird.
Have you found anything yet?