mirror of
https://github.com/spf13/cobra
synced 2024-11-24 22:57:12 +00:00
Update command.go
Fix typo in AddCommand method.
This commit is contained in:
parent
ee6224d01f
commit
d95d1b86bb
1 changed files with 1 additions and 1 deletions
|
@ -747,7 +747,7 @@ func (c *Command) AddCommand(cmds ...*Command) {
|
||||||
if nameLen > c.commandsMaxNameLen {
|
if nameLen > c.commandsMaxNameLen {
|
||||||
c.commandsMaxNameLen = nameLen
|
c.commandsMaxNameLen = nameLen
|
||||||
}
|
}
|
||||||
// If glabal normalization function exists, update all children
|
// If global normalization function exists, update all children
|
||||||
if c.globNormFunc != nil {
|
if c.globNormFunc != nil {
|
||||||
x.SetGlobalNormalizationFunc(c.globNormFunc)
|
x.SetGlobalNormalizationFunc(c.globNormFunc)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue