#command-line-arguments #interactive #arguments-parser #extension #clap #mode #prompt

interactive-clap

Interactive mode extension crate to Command Line Arguments Parser (https://crates.io/crates/clap)

12 releases

0.2.10 Apr 21, 2024
0.2.9 Mar 25, 2024
0.2.8 Jan 15, 2024
0.2.7 Oct 13, 2023
0.1.0 Dec 20, 2022

#414 in Command-line interface

Download history 362/week @ 2024-01-22 260/week @ 2024-01-29 78/week @ 2024-02-05 55/week @ 2024-02-12 214/week @ 2024-02-19 132/week @ 2024-02-26 95/week @ 2024-03-04 261/week @ 2024-03-11 68/week @ 2024-03-18 218/week @ 2024-03-25 299/week @ 2024-04-01 438/week @ 2024-04-08 191/week @ 2024-04-15 355/week @ 2024-04-22 147/week @ 2024-04-29 187/week @ 2024-05-06

905 downloads per month
Used in 15 crates (14 directly)

MIT/Apache

28KB
211 lines

Interactive clap

interactive-clap is a Rust crate of helpers for clap that enable interactive prompts for structs.

Crates.io Crates.io License License Contributors

See examples in the examples/ folder.

See it in action in near-cli-rs and bos-cli-rs.


lib.rs:

The Interactive-clap library is an add-on for the Command Line Argument Parser (https://crates.io/crates/clap). Interactive-clap allows you to parse command line options. The peculiarity of this macro is that in the absence of command line parameters, the interactive mode of entering these data by the user is activated.

Dependencies

~1.5MB
~35K SLoC