vendor: revendor
This commit is contained in:
6
vendor/github.com/spf13/cobra/command.go
generated
vendored
6
vendor/github.com/spf13/cobra/command.go
generated
vendored
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user