Commit b981ca9
committed
fix help hint showing shadowed option name
when a subcommand option shadows a help option name (e.g. -h),
the error hint was still suggesting the shadowed name. now it
uses get_help_option_names() which filters out names claimed
by other options, so it picks a working alternative like --help.1 parent cdab890 commit b981ca9
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | | - | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
0 commit comments