Skip to content

Commit

Permalink
Merge pull request #5832 from 8LWXpg/patch-1
Browse files Browse the repository at this point in the history
docs: fix command formatting
  • Loading branch information
epage authored Nov 29, 2024
2 parents 32bc56a + 518fedc commit 10c4f63
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions clap_complete/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 10c4f63

Please sign in to comment.