useShortOptionHandling traverses Lineage() for *any* ancestors with UseShortOptionHandling
()
| 199 | // useShortOptionHandling traverses Lineage() for *any* ancestors |
| 200 | // with UseShortOptionHandling |
| 201 | func (cmd *Command) useShortOptionHandling() bool { |
| 202 | for _, pCmd := range cmd.Lineage() { |
| 203 | if pCmd.UseShortOptionHandling { |
| 204 | return true |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | return false |
| 209 | } |
| 210 | |
| 211 | func (cmd *Command) suggestFlagFromError(err error, commandName string) (string, error) { |
| 212 | fl, parseErr := flagFromError(err) |