diff --git a/ini.go b/ini.go index e714d3d..84ba5c3 100644 --- a/ini.go +++ b/ini.go @@ -216,7 +216,7 @@ func writeGroupIni(cmd *Command, group *Group, namespace string, writer io.Write comments := (options & IniIncludeComments) != IniNone for _, option := range group.options { - if option.isFunc() || option.Hidden { + if option.Hidden || option.isFunc() && len(option.tag.Get("ini-name")) == 0 { continue }