diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index ee6ed2d9010..ba55baf1b1f 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -391,7 +391,7 @@ }, { "ImportPath": "github.com/spf13/cobra", - "Rev": "c0da825198c75814463e1b3018e42e438b771a5b" + "Rev": "9cb5e8502924a8ff1cce18a9348b61995d7b4fde" }, { "ImportPath": "github.com/spf13/pflag", diff --git a/Godeps/_workspace/src/github.com/spf13/cobra/bash_completions.go b/Godeps/_workspace/src/github.com/spf13/cobra/bash_completions.go index 1c5640745f1..dee95b31cab 100644 --- a/Godeps/_workspace/src/github.com/spf13/cobra/bash_completions.go +++ b/Godeps/_workspace/src/github.com/spf13/cobra/bash_completions.go @@ -4,6 +4,7 @@ import ( "bytes" "fmt" "os" + "sort" "strings" "github.com/spf13/pflag" @@ -282,6 +283,7 @@ func writeRequiredFlag(cmd *Command, out *bytes.Buffer) { func writeRequiredNoun(cmd *Command, out *bytes.Buffer) { fmt.Fprintf(out, " must_have_one_noun=()\n") + sort.Sort(sort.StringSlice(cmd.ValidArgs)) for _, value := range cmd.ValidArgs { fmt.Fprintf(out, " must_have_one_noun+=(%q)\n", value) }