aboutsummaryrefslogtreecommitdiff
path: root/int.go
diff options
context:
space:
mode:
authorEric Paris <[email protected]>2015-08-15 14:22:16 -0500
committerEric Paris <[email protected]>2015-08-15 14:22:16 -0500
commitccad0e1b8d442b5291ebbaa7d4f3b345a9dbfe65 (patch)
tree98409d6f5f56049df54b18a9fc577cf38dff8bae /int.go
parentda10e08318b7b4c0105c4df757cb1f997f439f4a (diff)
parent0692da7b4fa7568c62b505a313ee44a5256ee7f4 (diff)
Merge pull request #46 from eparis/goreportcard
Fix up minor things found by goreportcard.com
Diffstat (limited to 'int.go')
-rw-r--r--int.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/int.go b/int.go
index 23f70dd..b656036 100644
--- a/int.go
+++ b/int.go
@@ -44,7 +44,7 @@ func (f *FlagSet) IntVar(p *int, name string, value int, usage string) {
f.VarP(newIntValue(value, p), name, "", usage)
}
-// Like IntVar, but accepts a shorthand letter that can be used after a single dash.
+// IntVarP is like IntVar, but accepts a shorthand letter that can be used after a single dash.
func (f *FlagSet) IntVarP(p *int, name, shorthand string, value int, usage string) {
f.VarP(newIntValue(value, p), name, shorthand, usage)
}
@@ -55,7 +55,7 @@ func IntVar(p *int, name string, value int, usage string) {
CommandLine.VarP(newIntValue(value, p), name, "", usage)
}
-// Like IntVar, but accepts a shorthand letter that can be used after a single dash.
+// IntVarP is like IntVar, but accepts a shorthand letter that can be used after a single dash.
func IntVarP(p *int, name, shorthand string, value int, usage string) {
CommandLine.VarP(newIntValue(value, p), name, shorthand, usage)
}
@@ -68,7 +68,7 @@ func (f *FlagSet) Int(name string, value int, usage string) *int {
return p
}
-// Like Int, but accepts a shorthand letter that can be used after a single dash.
+// IntP is like Int, but accepts a shorthand letter that can be used after a single dash.
func (f *FlagSet) IntP(name, shorthand string, value int, usage string) *int {
p := new(int)
f.IntVarP(p, name, shorthand, value, usage)
@@ -81,7 +81,7 @@ func Int(name string, value int, usage string) *int {
return CommandLine.IntP(name, "", value, usage)
}
-// Like Int, but accepts a shorthand letter that can be used after a single dash.
+// IntP is like Int, but accepts a shorthand letter that can be used after a single dash.
func IntP(name, shorthand string, value int, usage string) *int {
return CommandLine.IntP(name, shorthand, value, usage)
}