mirror of
https://github.com/spf13/cobra.git
synced 2024-11-15 09:48:19 -07:00
commit
d697cc29c1
@ -34,7 +34,7 @@ func printOptions(out *bytes.Buffer, cmd *Command, name string) {
|
||||
parentFlags := cmd.InheritedFlags()
|
||||
parentFlags.SetOutput(out)
|
||||
if parentFlags.HasFlags() {
|
||||
fmt.Fprintf(out, "### Options inherrited from parent commands\n\n```\n")
|
||||
fmt.Fprintf(out, "### Options inherited from parent commands\n\n```\n")
|
||||
parentFlags.PrintDefaults()
|
||||
fmt.Fprintf(out, "```\n\n")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user