themalkolm / venom

🐍 Make viper and cobra more venomous!
MIT License
2 stars 0 forks source link

Invoke Flags() instead of recursive call in case of ++ #3

Closed themalkolm closed 7 years ago

themalkolm commented 7 years ago
type Flager interface {
    Flags() *pflag.FlagSet
}

Maybe not even only for inners structs. Maybe for any struct at all i.e. if it is available - use it instead of introspection.