fix: fix type test for common flags (#275)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user