(buf *bytes.Buffer, command *cobra.Command)
| 165 | } |
| 166 | |
| 167 | func manPrintOptions(buf *bytes.Buffer, command *cobra.Command) { |
| 168 | flags := command.NonInheritedFlags() |
| 169 | if flags.HasAvailableFlags() { |
| 170 | buf.WriteString("# OPTIONS\n") |
| 171 | manPrintFlags(buf, flags) |
| 172 | buf.WriteString("\n") |
| 173 | } |
| 174 | flags = command.InheritedFlags() |
| 175 | if hasNonHelpFlags(flags) { |
| 176 | buf.WriteString("# OPTIONS INHERITED FROM PARENT COMMANDS\n") |
| 177 | manPrintFlags(buf, flags) |
| 178 | buf.WriteString("\n") |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | func manPrintAliases(buf *bytes.Buffer, command *cobra.Command) { |
| 183 | if len(command.Aliases) > 0 { |
no test coverage detected