man: loadLongDescription: rename arg to avoid shadowing

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2025-03-19 10:46:35 +01:00
parent 344a85eae6
commit 5185ab89fe
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 2 additions and 2 deletions

View File

@ -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