mirror of
https://github.com/spf13/viper
synced 2024-12-22 19:47:01 +00:00
Add dot in BindPFlag comment
This commit is contained in:
parent
4cf0bd2789
commit
d0c2644870
1 changed files with 2 additions and 2 deletions
2
viper.go
2
viper.go
|
@ -668,7 +668,7 @@ func (v *Viper) BindPFlags(flags *pflag.FlagSet) (err error) {
|
||||||
return v.BindFlagValues(pflagValueSet{flags})
|
return v.BindFlagValues(pflagValueSet{flags})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bind a specific key to a pflag (as used by cobra)
|
// Bind a specific key to a pflag (as used by cobra).
|
||||||
// Example (where serverCmd is a Cobra instance):
|
// Example (where serverCmd is a Cobra instance):
|
||||||
//
|
//
|
||||||
// serverCmd.Flags().Int("port", 1138, "Port to run Application server on")
|
// serverCmd.Flags().Int("port", 1138, "Port to run Application server on")
|
||||||
|
|
Loading…
Reference in a new issue