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 {
|
func loadLongDescription(parentCommand *cobra.Command, path string) error {
|
||||||
for _, cmd := range cmd.Commands() {
|
for _, cmd := range parentCommand.Commands() {
|
||||||
cmd.DisableFlagsInUseLine = true
|
cmd.DisableFlagsInUseLine = true
|
||||||
if cmd.Name() == "" {
|
if cmd.Name() == "" {
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user