Description

Bind a specific key to a pflag (as used by cobra). Example (where serverCmd is a Cobra instance):

serverCmd.Flags().Int("port", 1138, "Port to run Application server on")
Viper.BindPFlag("port", serverCmd.Flags().Lookup("port"))

BindPFlag is referenced in 50 repositories

github.com/spf13/viper github.com/TheThingsNetwork/ttn github.com/Lesterpig/dfss

...