This commit is contained in:
Hongchao Deng
2020-10-26 23:19:59 -07:00
parent 182805c9ca
commit 95823cdcdb
+3 -4
View File
@@ -76,11 +76,10 @@ func GetParameters(templatePath string) ([]types.Parameter, error) {
var found bool
for i := 0; i < tempStruct.Len(); i++ {
paraDef = tempStruct.Field(i)
if !paraDef.IsDefinition || paraDef.IsHidden {
continue
if paraDef.Name == specValue {
found = true
break
}
found = true
break
}
if !found {
return nil, errors.New("arguments not exist")