mirror of
https://github.com/rclone/rclone.git
synced 2025-12-20 10:13:20 +00:00
vendor: update spf13/cobra to fix arg parsing
This commit is contained in:
4
vendor/github.com/spf13/cobra/cobra_test.go
generated
vendored
4
vendor/github.com/spf13/cobra/cobra_test.go
generated
vendored
@@ -1150,12 +1150,12 @@ func TestGlobalNormFuncPropagation(t *testing.T) {
|
||||
|
||||
func TestFlagOnPflagCommandLine(t *testing.T) {
|
||||
flagName := "flagOnCommandLine"
|
||||
pflag.CommandLine.String(flagName, "", "about my flag")
|
||||
pflag.String(flagName, "", "about my flag")
|
||||
r := fullSetupTest("--help")
|
||||
|
||||
checkResultContains(t, r, flagName)
|
||||
|
||||
// reset CommandLine flagset
|
||||
// Reset pflag.CommandLine flagset.
|
||||
pflag.CommandLine = pflag.NewFlagSet(os.Args[0], pflag.ExitOnError)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user