Use new mapper function name

This commit is contained in:
Chris Roberts 2021-07-12 11:45:07 -07:00 committed by Paul Hinze
parent 2cc1ba75ce
commit b2cf6ed9bf
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -187,7 +187,7 @@ func Commands(
for i := 0; i < len(result.Commands); i++ {
n := result.Commands[i]
flgs, _ := core.ProtoToFlagsMapper(n.Flags)
flgs, _ := core.FlagOption(n.Flags)
if _, ok := commands[n.Name]; !ok {
commands[n.Name] = func() (cli.Command, error) {
return &DynamicCommand{