Skip to content

Commit 0cef0a3

Browse files
committed
Core
- list parameters separated by comma fixed
1 parent 09dd9bd commit 0cef0a3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Angular/KY.Generator.Angular.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Download KY.Generator to use this module</Description>
1414
<PackageIconUrl>https://ky-programming.de/images/logos/128.png</PackageIconUrl>
1515
<RepositoryUrl>https://github.com/KY-Programming/generator</RepositoryUrl>
1616
<PackageTags>KY-Generator KY Generator Angular</PackageTags>
17+
<LangVersion>latest</LangVersion>
1718
</PropertyGroup>
1819

1920
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

Core/Command/GeneratorCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public bool Parse(IEnumerable<RawCommandParameter> parameters)
5757
}
5858
PropertyInfo property = mapping[parameterName];
5959
bool isList = property.PropertyType.Name.StartsWith("List`");
60-
if (isList)
60+
if (isList && this.OriginalParameters.Count(p => p.Name == parameter.Name) > 1)
6161
{
6262
IList list = property.GetMethod.Invoke(this.Parameters, null) as IList;
6363
if (list == null)

0 commit comments

Comments
 (0)