Skip to content

Commit

Permalink
Exposed the value accessor in Context
Browse files Browse the repository at this point in the history
  • Loading branch information
corruptmemory committed May 2, 2018
1 parent 8e01ec4 commit dbcdbe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func (c *Context) Parent() *Context {
}

// value returns the value of the flag coressponding to `name`
func (c *Context) value(name string) interface{} {
func (c *Context) Value(name string) interface{} {
return c.flagSet.Lookup(name).Value.(flag.Getter).Get()
}

Expand Down

0 comments on commit dbcdbe4

Please sign in to comment.