Skip to content

Commit

Permalink
docs(complete): Ensure examples work
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Sep 28, 2022
1 parent 5d99204 commit 8aafddf
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 8aafddf

Please sign in to comment.