Skip to content

Commit 5185ab8

Browse files
committed
man: loadLongDescription: rename arg to avoid shadowing
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 344a85e commit 5185ab8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

man/generate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ func generateManPages(opts *options) error {
6262
})
6363
}
6464

65-
func loadLongDescription(cmd *cobra.Command, path string) error {
66-
for _, cmd := range cmd.Commands() {
65+
func loadLongDescription(parentCommand *cobra.Command, path string) error {
66+
for _, cmd := range parentCommand.Commands() {
6767
cmd.DisableFlagsInUseLine = true
6868
if cmd.Name() == "" {
6969
continue

0 commit comments

Comments
 (0)