mirror of
https://github.com/spf13/cobra
synced 2025-05-06 05:17:21 +00:00
Merge 3614e10541
into a1f051bc3e
This commit is contained in:
commit
702a715c7c
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…
Add table
Reference in a new issue