gen/writers/helpers.go
func flagType(param *gen.ActionParam) string {
	path := param.QueryName
	if _, ok := param.Type.(*gen.ArrayDataType); ok {
		return "[]string"
	} else if _, ok := param.Type.(*gen.EnumerableDataType); ok {
		return "map"
	} else if _, ok := param.Type.(*gen.SourceUploadDataType); ok {
		return "sourcefile"
	} else if _, ok := param.Type.(*gen.UploadDataType); ok {
		return "file"
	}
	b, ok := param.Type.(*gen.BasicDataType)
	if !ok {
		panic("Wooaat? a object leaf??? - " + path)
	}
	return string(*b)
}
func flagType(param *gen.ActionParam) string {
	path := param.QueryName
	if _, ok := param.Type.(*gen.ArrayDataType); ok {
		return "[]string"
	} else if _, ok := param.Type.(*gen.EnumerableDataType); ok {
		return "map"
	} else if _, ok := param.Type.(*gen.SourceUploadDataType); ok {
		return "sourcefile"
	} else if _, ok := param.Type.(*gen.UploadDataType); ok {
		return "file"
	}
	b, ok := param.Type.(*gen.BasicDataType)
	if !ok {
		panic("Wooaat? a object leaf??? - " + path)
	}
	return string(*b)
}
// Type of flag, one of "string", "[]string", "int", "map" or "file"