Lookup returns the Flag structure of the named flag, returning nil if none exists.
(name string)
| 376 | |
| 377 | // Lookup returns the Flag structure of the named flag, returning nil if none exists. |
| 378 | func (f *FlagSet) Lookup(name string) *Flag { |
| 379 | return f.lookup(f.normalizeFlagName(name)) |
| 380 | } |
| 381 | |
| 382 | // ShorthandLookup returns the Flag structure of the short handed flag, |
| 383 | // returning nil if none exists. |