File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ func (c *Context) Parent() *Context {
34
34
return c .parent
35
35
}
36
36
37
- // Parent returns top context if exists
37
+ // Global returns top context if exists
38
38
func (c * Context ) Global () * Context {
39
39
ctx := c
40
40
for {
@@ -84,7 +84,7 @@ func (c *Context) GetBool(name string) bool {
84
84
return false
85
85
}
86
86
87
- // GetBool returns flag value as bool
87
+ // GetInt returns flag value as int
88
88
func (c * Context ) GetInt (name string ) int {
89
89
f := lookupFlag (c .flags , name )
90
90
if f != nil {
@@ -168,7 +168,7 @@ func (c *Context) GetUint8(name string) uint8 {
168
168
return 0
169
169
}
170
170
171
- // GetBool returns flag value as bool
171
+ // GetUint16 returns flag value as uint16
172
172
func (c * Context ) GetUint16 (name string ) uint16 {
173
173
f := lookupFlag (c .flags , name )
174
174
if f != nil {
@@ -192,7 +192,7 @@ func (c *Context) GetUint32(name string) uint32 {
192
192
return 0
193
193
}
194
194
195
- // GetBool returns flag value as bool
195
+ // GetUint64 returns flag value as uint64
196
196
func (c * Context ) GetUint64 (name string ) uint64 {
197
197
f := lookupFlag (c .flags , name )
198
198
if f != nil {
You can’t perform that action at this time.
0 commit comments