1
0
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:
Nick Craig-Wood
2017-05-12 19:49:32 +01:00
parent 8b61692754
commit 0c92a64bb3
7 changed files with 29 additions and 14 deletions

View File

@@ -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)
}