diff options
| author | Eric Paris <[email protected]> | 2015-09-23 15:37:00 -0400 |
|---|---|---|
| committer | Eric Paris <[email protected]> | 2015-09-23 16:19:34 -0400 |
| commit | b02994d092faae574c4b87f516f6d7928f739da2 (patch) | |
| tree | 014098de374523548d92dd8173d155b60d0a2f6a /flag.go | |
| parent | 5a13a75b13d132dc7d07dd19fd260257cd9c0290 (diff) | |
Add more CI checks forcing code cleanliness
Diffstat (limited to 'flag.go')
| -rw-r--r-- | flag.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -315,9 +315,9 @@ func (f *FlagSet) MarkDeprecated(name string, usageMessage string) error { return nil } -// Mark the shorthand of a flag deprecated in your program. It will -// continue to function but will not show up in help or usage messages. Using -// this flag will also print the given usageMessage. +// MarkShorthandDeprecated will mark the shorthand of a flag deprecated in your +// program. It will continue to function but will not show up in help or usage +// messages. Using this flag will also print the given usageMessage. func (f *FlagSet) MarkShorthandDeprecated(name string, usageMessage string) error { flag := f.Lookup(name) if flag == nil { @@ -821,7 +821,7 @@ func NewFlagSet(name string, errorHandling ErrorHandling) *FlagSet { return f } -// SetIntersperesed sets whether to support interspersed option/non-option arguments. +// SetInterspersed sets whether to support interspersed option/non-option arguments. func (f *FlagSet) SetInterspersed(interspersed bool) { f.interspersed = interspersed } |
