Skip to main content

Module cli

Module cli 

Source
Expand description

CLI argument parsing.

CLI parsing for the cargo lihaaf command.

Each field maps directly to a subcommand flag and preserves the documented default behavior.

§Why clap derive

The flag set is small enough that hand-rolling argv parsing would work, but clap carries the --help / --version rendering and the validation that would otherwise need to be re-implemented (positive integer for -j, etc.).

Structs§

Cli
Parsed CLI arguments.

Functions§

parse_from
Parse argv (already stripped of the cargo subcommand prefix) into a Cli.