From 518fedcd646dcf63ad43cb72450cd7bceff772ec Mon Sep 17 00:00:00 2001 From: 8LWXpg <105704427+8LWXpg@users.noreply.github.com> Date: Fri, 29 Nov 2024 22:08:03 +0800 Subject: [PATCH] Update lib.rs --- clap_complete/src/lib.rs | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/clap_complete/src/lib.rs b/clap_complete/src/lib.rs index 43feab1efb7..a45b64ae2fc 100644 --- a/clap_complete/src/lib.rs +++ b/clap_complete/src/lib.rs @@ -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(gen: G, cmd: &mut Command) {