mirror of
https://github.com/spf13/cobra
synced 2025-05-05 21:07:24 +00:00
Help belongs on stderr
This commit is contained in:
parent
ddad852e88
commit
487d155ee2
1 changed files with 1 additions and 1 deletions
|
@ -311,7 +311,7 @@ func (c *Command) HelpFunc() func(*Command, []string) {
|
||||||
}
|
}
|
||||||
return func(c *Command, a []string) {
|
return func(c *Command, a []string) {
|
||||||
c.mergePersistentFlags()
|
c.mergePersistentFlags()
|
||||||
err := tmpl(c.OutOrStdout(), c.HelpTemplate(), c)
|
err := tmpl(c.OutOrStderr(), c.HelpTemplate(), c)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.Println(err)
|
c.Println(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue