Skip to content

Commit

Permalink
Merge pull request #4277 from epage/help
Browse files Browse the repository at this point in the history
docs(complete): Ensure examples work
  • Loading branch information
epage committed Sep 28, 2022
2 parents 31e58cc + 8aafddf commit f1dffa1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion clap_complete/examples/completion-derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct Opt {
command_with_args: Vec<String>,
#[arg(short, long, value_hint = ValueHint::Username)]
user: Option<String>,
#[arg(short, long, value_hint = ValueHint::Hostname)]
#[arg(long, value_hint = ValueHint::Hostname)]
host: Option<String>,
#[arg(long, value_hint = ValueHint::Url)]
url: Option<String>,
Expand Down
1 change: 0 additions & 1 deletion clap_complete/examples/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ fn build_cli() -> Command {
)
.arg(
Arg::new("host")
.short('h')
.long("host")
.value_hint(ValueHint::Hostname),
)
Expand Down

0 comments on commit f1dffa1

Please sign in to comment.