A full featured, fast Command Line Argument Parser for Rust
A full featured, fast Command Line Argument Parser for Rust
Command Line Argument Parser for Rust Dual-licensed under Apache 2.0 or MIT.
$ cargo add clapCreate your command-line parser, with all of the bells and whistles, declaratively or procedurally.
For more details, see:
Dependency Dashboard
Completions for subcommand not working after second or third subcommand
bash: filename completion splits paths with spaces unless ValueHint::FilePath
Detailed help for ValueEnum variants
Error::render() doc example teaches a color-stripping path — println!("{err}") is always plain
Dynamic completion sort order is not correct
Re-evaluate shells included by default
Support default field values
Completion fails past the first argument when the binary name contains a hyphen
Underscores in numeric literal args matching Rust source code behavior