Skip to content
This repository was archived by the owner on May 11, 2024. It is now read-only.

Commit 55fcd60

Browse files
committed
- [CLI] allow case insensitive flags.
1 parent 8ba29c2 commit 55fcd60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

AssetStudio.CLI/Program.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ public static void Run(Options o)
6464
{
6565
var param = typeStr.Split(':');
6666

67-
flag = (TypeFlag)Enum.Parse(typeof(TypeFlag), param[1]);
67+
flag = (TypeFlag)Enum.Parse(typeof(TypeFlag), param[1], true);
6868

6969
typeStr = param[0];
7070
}
7171

72-
type = (ClassIDType)Enum.Parse(typeof(ClassIDType), typeStr);
72+
type = (ClassIDType)Enum.Parse(typeof(ClassIDType), typeStr, true);
7373

7474
TypeFlags.SetType(type, flag.HasFlag(TypeFlag.Parse), flag.HasFlag(TypeFlag.Export));
7575

0 commit comments

Comments
 (0)