Prefer the long help text over the short help text.
This commit is contained in:
parent
04574a0647
commit
57154efb10
@ -518,7 +518,8 @@ impl CommandOption {
|
||||
short: arg.get_short().map(|o| format!("-{}", o)),
|
||||
long: arg.get_long().map(|o| format!("--{}", o)),
|
||||
value_names,
|
||||
help: arg.get_help().map(|s| s.to_string()),
|
||||
help: arg.get_long_help().or(arg.get_help())
|
||||
.map(|s| s.to_string()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user