mirror of https://github.com/docker/cli.git
man: loadLongDescription: rename arg to avoid shadowing
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
344a85eae6
commit
5185ab89fe
|
@ -62,8 +62,8 @@ func generateManPages(opts *options) error {
|
|||
})
|
||||
}
|
||||
|
||||
func loadLongDescription(cmd *cobra.Command, path string) error {
|
||||
for _, cmd := range cmd.Commands() {
|
||||
func loadLongDescription(parentCommand *cobra.Command, path string) error {
|
||||
for _, cmd := range parentCommand.Commands() {
|
||||
cmd.DisableFlagsInUseLine = true
|
||||
if cmd.Name() == "" {
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue