Skip to content

Commit e92f436

Browse files
Ignore casing on input type parameters (#14)
1 parent 9ca69fe commit e92f436

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Task/AggregateConfig.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public override bool Execute()
4848

4949
OutputFile = Path.GetFullPath(OutputFile);
5050

51-
if (!Enum.TryParse(OutputType, out OutputTypeEnum outputType) ||
51+
if (!Enum.TryParse(OutputType, true, out OutputTypeEnum outputType) ||
5252
!Enum.IsDefined(typeof(OutputTypeEnum), outputType))
5353
{
5454
Log.LogError("Invalid OutputType: {0}. Available options: {1}", OutputType, string.Join(", ", Enum.GetNames(typeof(OutputTypeEnum))));
@@ -57,7 +57,7 @@ public override bool Execute()
5757

5858
InputTypeEnum inputType = InputTypeEnum.Yaml;
5959
if (!string.IsNullOrEmpty(InputType) &&
60-
(!Enum.TryParse(InputType, out inputType) || !Enum.IsDefined(typeof(InputTypeEnum), inputType)))
60+
(!Enum.TryParse(InputType, true, out inputType) || !Enum.IsDefined(typeof(InputTypeEnum), inputType)))
6161
{
6262
Log.LogError("Invalid InputType: {0}. Available options: {1}", InputType, string.Join(", ", Enum.GetNames(typeof(InputTypeEnum))));
6363
return false;

0 commit comments

Comments
 (0)