mirror of
https://github.com/clap-rs/clap
synced 2024-12-04 01:59:10 +00:00
Update lib.rs
This commit is contained in:
parent
acabb8185d
commit
518fedcd64
1 changed files with 7 additions and 10 deletions
|
@ -22,16 +22,13 @@
|
|||
//!
|
||||
//! fn build_cli() -> Command {
|
||||
//! Command::new("example")
|
||||
//! .arg(Arg::new("file")
|
||||
//! .help("some input file")
|
||||
//! .value_hint(ValueHint::AnyPath),
|
||||
//! )
|
||||
//! .arg(
|
||||
//! Arg::new("generator")
|
||||
//! .long("generate")
|
||||
//! .action(ArgAction::Set)
|
||||
//! .value_parser(value_parser!(Shell)),
|
||||
//! )
|
||||
//! .arg(Arg::new("file")
|
||||
//! .help("some input file")
|
||||
//! .value_hint(ValueHint::AnyPath))
|
||||
//! .arg(Arg::new("generator")
|
||||
//! .long("generate")
|
||||
//! .action(ArgAction::Set)
|
||||
//! .value_parser(value_parser!(Shell)))
|
||||
//! }
|
||||
//!
|
||||
//! fn print_completions<G: Generator>(gen: G, cmd: &mut Command) {
|
||||
|
|
Loading…
Reference in a new issue