Skip to content

Commit cc012d2

Browse files
committed
fix: fallback to short help
1 parent 3fff649 commit cc012d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clap_derive/src/item.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,7 @@ impl Item {
908908
short_name,
909909
long_help
910910
.clone()
911+
.or(short_help)
911912
.map(|h| quote!(#h))
912913
.unwrap_or_else(|| quote!(None)),
913914
)

0 commit comments

Comments
 (0)