aboutsummaryrefslogtreecommitdiff
path: root/int32.go
diff options
context:
space:
mode:
Diffstat (limited to 'int32.go')
-rw-r--r--int32.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/int32.go b/int32.go
index d41f315..2e1a317 100644
--- a/int32.go
+++ b/int32.go
@@ -35,12 +35,12 @@ func (f *FlagSet) Int32VarP(p *int32, name, shorthand string, value int32, usage
// Int32Var defines an int32 flag with specified name, default value, and usage string.
// The argument p points to an int32 variable in which to store the value of the flag.
func Int32Var(p *int32, name string, value int32, usage string) {
- commandLine.VarP(newInt32Value(value, p), name, "", usage)
+ CommandLine.VarP(newInt32Value(value, p), name, "", usage)
}
// Like Int32Var, but accepts a shorthand letter that can be used after a single dash.
func Int32VarP(p *int32, name, shorthand string, value int32, usage string) {
- commandLine.VarP(newInt32Value(value, p), name, shorthand, usage)
+ CommandLine.VarP(newInt32Value(value, p), name, shorthand, usage)
}
// Int32 defines an int32 flag with specified name, default value, and usage string.
@@ -61,10 +61,10 @@ func (f *FlagSet) Int32P(name, shorthand string, value int32, usage string) *int
// Int32 defines an int32 flag with specified name, default value, and usage string.
// The return value is the address of an int32 variable that stores the value of the flag.
func Int32(name string, value int32, usage string) *int32 {
- return commandLine.Int32P(name, "", value, usage)
+ return CommandLine.Int32P(name, "", value, usage)
}
// Like Int32, but accepts a shorthand letter that can be used after a single dash.
func Int32P(name, shorthand string, value int32, usage string) *int32 {
- return commandLine.Int32P(name, shorthand, value, usage)
+ return CommandLine.Int32P(name, shorthand, value, usage)
}