mirror of
https://github.com/spf13/cobra
synced 2024-11-25 07:07:15 +00:00
Update error output to use Help() instead of UsageString()
This commit is contained in:
parent
a1f051bc3e
commit
3614e10541
1 changed files with 1 additions and 1 deletions
|
@ -861,7 +861,7 @@ func (c *Command) ExecuteC() (cmd *Command, err error) {
|
||||||
// If root command has SilentUsage flagged,
|
// If root command has SilentUsage flagged,
|
||||||
// all subcommands should respect it
|
// all subcommands should respect it
|
||||||
if !cmd.SilenceUsage && !c.SilenceUsage {
|
if !cmd.SilenceUsage && !c.SilenceUsage {
|
||||||
c.Println(cmd.UsageString())
|
cmd.Help()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return cmd, err
|
return cmd, err
|
||||||
|
|
Loading…
Reference in a new issue