Expand description
The command-line front end of dimvexa.
dimvexa convert VALUE FROM TO [--exact] [--json] [--config FILE]...
dimvexa VALUE FROM TO [--exact] [--json] shorthand
dimvexa units [--groups | GROUP | UNIT] [--json] list units by quantity, one group, or one unitThis crate contains no conversion logic: it parses arguments, calls the public
library API and formats the result, so it cannot disagree with the library. It always
uses the exact path; the decimal it prints is the exact result rounded once to the
nearest f64 (0 ulp), never the fast path’s result. The library’s fast path is within
1 ulp (linear) or 2 ulp (affine) of that value (docs/precision.md).
Exit codes: 0 success, 1 conversion refused or invalid input, 2 usage error.
With --json, errors are printed to stdout as JSON (schema dimvexa.convert/1, see
docs/schemas/; units --json uses dimvexa.units/1) and the exit code stays non-zero. The error code is one of the
library’s stable codes (dimvexa::Error::ALL_CODES) or usage.
Functions§
- run
- Runs the command line
args(without the program name), writing tooutanderr. Returns the process exit code.