Re-exports§
pub use util::*;
Modules§
Structs§
- CmdSpec
- Command specification.
- Env
- Global environment for a parse/render session.
- Group
Decl - Group declaration.
- Match
View - Read‑only scoped accessor into
Matches. - Matches
- All parsed values and their sources. Internally keyed by flattened strings.
We add
leaf_pathso callers can query scoped without spelling keys. - OptSpec
- Option (flag or value-bearing).
- PosSpec
- Positional argument specification.
Enums§
- Color
Mode - Color mode for help rendering.
- Error
- Top-level error type.
- Group
Mode - Group rule (applies to a set of options sharing the same group name).
- PosCardinality
- Positional cardinality.
- Repeat
- Whether an option may be repeated.
- Source
- Provenance of a value in
Matches. - Status
- Whether a key is set and from where.
- Value
- Value container stored in
Matches.
Functions§
- key_for
- Join a command path and logical name into the internal key (options/flags).
- levenshtein
- parse
- Parse command line arguments.
- pos_
key_ for - Join a command path and positional name into the internal key.
- render_
help - render_
help_ with_ path - Render help with strict column alignment based on the longest label in the section.
Type Aliases§
- CmdHandler
Fn - Command handler (executed for the leaf command after callbacks).
- CmdValidator
Fn - Command-level validator that can inspect the final
Matches. - OnFlag
Fn - OnValue
Fn - Callback to apply a value/flag into user context.
- Result
- Result alias.
- Value
Validator Fn - User-pluggable validator for a single value (OsStr-based, cross-platform).