fix: fix type test for common flags (#275)

This commit is contained in:
Daniel Moran
2021-09-21 13:26:21 -04:00
committed by GitHub
parent dfc6f00982
commit 9a008c6b26
2 changed files with 3 additions and 2 deletions

View File

@ -271,9 +271,9 @@ OPTIONS:
customFunc := make(map[string]interface{})
customFunc["iscommon"] = func(flag cli.Flag) bool {
switch flag.(type) {
case CommonBoolFlag:
case *CommonBoolFlag:
return true
case CommonStringFlag:
case *CommonStringFlag:
return true
default:
return false