diff options
author | Michael Muré <batolettre@gmail.com> | 2019-05-22 20:53:53 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-05-22 20:53:53 +0200 |
commit | 485ca5900486b7fc3ea71cbcbb39b87272ae09fd (patch) | |
tree | 92551be8e01130542f969d06282abfc4a1c43629 /vendor/github.com/spf13/cobra/command.go | |
parent | e781d6c7fe7dba2fc526c2049aa188c9988e1cf4 (diff) | |
download | git-bug-485ca5900486b7fc3ea71cbcbb39b87272ae09fd.tar.gz |
vendor: update dependencies
Diffstat (limited to 'vendor/github.com/spf13/cobra/command.go')
-rw-r--r-- | vendor/github.com/spf13/cobra/command.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vendor/github.com/spf13/cobra/command.go b/vendor/github.com/spf13/cobra/command.go index 34d1bf36..b257f91b 100644 --- a/vendor/github.com/spf13/cobra/command.go +++ b/vendor/github.com/spf13/cobra/command.go @@ -817,13 +817,11 @@ func (c *Command) ExecuteC() (cmd *Command, err error) { // overriding c.InitDefaultHelpCmd() - var args []string + args := c.args // Workaround FAIL with "go test -v" or "cobra.test -test.v", see #155 if c.args == nil && filepath.Base(os.Args[0]) != "cobra.test" { args = os.Args[1:] - } else { - args = c.args } var flags []string @@ -1335,7 +1333,7 @@ func (c *Command) LocalFlags() *flag.FlagSet { return c.lflags } -// InheritedFlags returns all flags which were inherited from parents commands. +// InheritedFlags returns all flags which were inherited from parent commands. func (c *Command) InheritedFlags() *flag.FlagSet { c.mergePersistentFlags() |