Add dot in BindPFlag comment

This commit is contained in:
Albert 2016-08-05 12:25:24 +05:00 committed by Bjørn Erik Pedersen
parent 4cf0bd2789
commit d0c2644870

View file

@ -668,8 +668,8 @@ func (v *Viper) BindPFlags(flags *pflag.FlagSet) (err error) {
return v.BindFlagValues(pflagValueSet{flags})
}
// Bind a specific key to a pflag (as used by cobra)
// Example(where serverCmd is a Cobra instance):
// 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"))