chore: copy usages

This commit is contained in:
andig 2023-01-17 22:22:45 +01:00
parent fb899d33ae
commit 06fdeab7a5

View file

@ -222,6 +222,10 @@ func (p *Param) OverwriteProperties(withParam Param) {
// always overwrite if defined
p.Description.Update(withParam.Description, true)
if len(p.Usages) == 0 {
p.Usages = withParam.Usages
}
if withParam.ValueType != "" {
p.ValueType = withParam.ValueType
}