Help command must use Stdout instead of Stderr

This commit is contained in:
Fabiano Franz
2016-07-06 12:51:57 -03:00
parent 6a8bd97bdb
commit 77530f537e
2 changed files with 53 additions and 51 deletions

View File

@ -646,7 +646,7 @@ func TestSubcommandArgEvaluation(t *testing.T) {
second := &Command{
Use: "second",
Run: func(cmd *Command, args []string) {
fmt.Fprintf(cmd.Out(), "%v", args)
fmt.Fprintf(cmd.getOutOrStdout(), "%v", args)
},
}
first.AddCommand(second)