Crate rust_args_parser

Crate rust_args_parser 

Source

Re-exports§

pub use util::*;

Modules§

util

Structs§

CmdSpec
Command specification.
Env
Global environment for a parse/render session.
GroupDecl
Group declaration.
MatchView
Read‑only scoped accessor into Matches.
Matches
All parsed values and their sources. Internally keyed by flattened strings. We add leaf_path so callers can query scoped without spelling keys.
OptSpec
Option (flag or value-bearing).
PosSpec
Positional argument specification.

Enums§

ColorMode
Color mode for help rendering.
Error
Top-level error type.
GroupMode
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
Command handler (executed for the leaf command after callbacks).
CmdValidator
Command-level validator that can inspect the final Matches.
OnFlag
OnValue
Callback to apply a value/flag into user context.
Result
Result alias.
ValueValidator
User-pluggable validator for a single value (OsStr-based, cross-platform).