Prefer the long help text over the short help text.

This commit is contained in:
Justus Winter 2024-01-10 11:19:55 +01:00
parent 04574a0647
commit 57154efb10
No known key found for this signature in database
GPG Key ID: 686F55B4AB2B3386

View File

@ -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()),
}
}
}