usage-rs 0.0.0

A compiled CLI parser for Rust, built on usage specs
Documentation

A compiled CLI parser for Rust.

usage-rs is the crate to depend on. It re-exports the derive macros from usage-derive and the runtime from [usage_argv], and gates the cold-path features — spec emission, help rendering, completions, rich diagnostics — behind cargo features so a binary only carries what it uses.

Status

Reserved and empty. See PROGRESS.md for what exists and what is next.

Features

  • spec (default) — emit the CLI's usage spec as KDL, the input to usage g markdown|manpage|json and to the completion engine.
  • help (default) — render --help from the emitted spec.
  • completions — generate shell completion scripts and serve completion requests from the binary itself, with no separate usage install.
  • diagnostics — re-parse a failed command line to produce suggestions and usage output. A successful parse never enters this code.