Registry / cli / interactive-clap

interactive-clap

JSON →
library0.3.2rscratesunverified

Interactive mode extension for clap, providing user prompts for CLI arguments.

# Cargo.toml [dependencies] interactive-clap = "0.3.2"
INSTALL
IMPORT
SIG · INTERACTIVE-CLAP
I
interactive-clap
clirustv0.3.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

InteractiveClap
use interactive_clap::InteractiveClap;

Adds interactive prompts for missing CLI arguments using clap.

use clap::Parser; use interactive_clap::InteractiveClap; #[derive(Parser, InteractiveClap)] struct Args { name: String, } fn main() { let args = Args::parse(); println!("Hello, {}!", args.name); }
Debug
Known issues
gotchaRequires clap as a dependency with the 'derive' feature.
fix
Add clap = { version = "4", features = ["derive"] } to Cargo.toml.
affects: >=0.3.0
Upgrade
Version history
0.3.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
28
Resources
interactive-clap — cargo add interactive-clap · libregistry