docs(complete): Ensure examples work

Fixes #4272
This commit is contained in:
Ed Page 2022-09-28 14:34:50 -05:00
parent 5d9920480c
commit 8aafddff01
2 changed files with 1 additions and 2 deletions

View file

@ -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>,

View file

@ -79,7 +79,6 @@ fn build_cli() -> Command {
)
.arg(
Arg::new("host")
.short('h')
.long("host")
.value_hint(ValueHint::Hostname),
)