aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/urfave/cli/context.go
diff options
context:
space:
mode:
authorJoseph Richey <joerichey@google.com>2017-09-29 03:16:43 -0700
committerGitHub <noreply@github.com>2017-09-29 03:16:43 -0700
commitd6efd2ab463e82cc3a78860384f26d809bd76ce5 (patch)
treef2fbf84f4e160d0d5e107ee05338be5e0133f01b /vendor/github.com/urfave/cli/context.go
parent3ca15548454f773ea3290f810ed1b1d55fec1783 (diff)
parentddcc450fc6d78806a0d0369bb1cdc2155f4e328e (diff)
Merge pull request #64 from google/new_values
Update all external dependencies to the latest version
Diffstat (limited to 'vendor/github.com/urfave/cli/context.go')
-rw-r--r--vendor/github.com/urfave/cli/context.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/github.com/urfave/cli/context.go b/vendor/github.com/urfave/cli/context.go
index cb89e92..db94191 100644
--- a/vendor/github.com/urfave/cli/context.go
+++ b/vendor/github.com/urfave/cli/context.go
@@ -39,11 +39,13 @@ func (c *Context) NumFlags() int {
// Set sets a context flag to a value.
func (c *Context) Set(name, value string) error {
+ c.setFlags = nil
return c.flagSet.Set(name, value)
}
// GlobalSet sets a context flag to a value on the global flagset
func (c *Context) GlobalSet(name, value string) error {
+ globalContext(c).setFlags = nil
return globalContext(c).flagSet.Set(name, value)
}