Expand description
Command-line interface: argument definitions and the run entry point.
run is generic over its output and error sinks so it can be driven both
by the real binary (locked stdout/stderr) and by tests (in-memory buffers).
It returns the process exit code:
| code | meaning |
|---|---|
0 | every input was valid UTF-8 |
1 | every input was readable, but at least one was invalid |
2 | at least one input could not be read securely |
Structs§
- Args
- Validate whether files (or standard input) contain well-formed UTF-8, fast.
Functions§
- run
- Run the validation described by
args, writing results tooutand diagnostics toerr. Returns the process exit code.