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

interactive-clap

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

14 releases

0.3.1 Sep 18, 2024
0.2.10 Apr 21, 2024
0.2.9 Mar 25, 2024
0.2.7 Oct 13, 2023
0.1.0 Dec 20, 2022

#414 in Command-line interface

Download history 1103/week @ 2024-08-03 1954/week @ 2024-08-10 648/week @ 2024-08-17 660/week @ 2024-08-24 1239/week @ 2024-08-31 799/week @ 2024-09-07 636/week @ 2024-09-14 570/week @ 2024-09-21 436/week @ 2024-09-28 458/week @ 2024-10-05 648/week @ 2024-10-12 442/week @ 2024-10-19 550/week @ 2024-10-26 376/week @ 2024-11-02 294/week @ 2024-11-09 483/week @ 2024-11-16

1,767 downloads per month
Used in 18 crates (15 directly)

MIT/Apache

29KB
221 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
~39K SLoC