Skip to content

Commit 81ed778

Browse files
committed
[CLI] Improve UnityVersion option info
1 parent d1fed47 commit 81ed778

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

AssetStudioCLI/Options/CLIOptions.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,6 +1206,9 @@ private static string ShowExportTypes()
12061206

12071207
public static void ShowCurrentOptions()
12081208
{
1209+
var unityVer = o_unityVersion.Value?.ToString();
1210+
unityVer = string.IsNullOrEmpty(unityVer) ? "ReadFromAsset" : unityVer;
1211+
12091212
var sb = new StringBuilder();
12101213
sb.AppendLine("[Current Options]");
12111214
sb.AppendLine($"# Working Mode: {o_workMode}");
@@ -1244,7 +1247,7 @@ public static void ShowCurrentOptions()
12441247
sb.AppendLine($"# Export Asset List: {o_exportAssetList}");
12451248
sb.AppendLine(ShowCurrentFilter());
12461249
sb.AppendLine($"# Assembly Path: \"{o_assemblyPath}\"");
1247-
sb.AppendLine($"# Unity Version: \"{o_unityVersion}\"");
1250+
sb.AppendLine($"# Unity Version: {unityVer}");
12481251
if (o_workMode.Value == WorkMode.Export)
12491252
{
12501253
sb.AppendLine($"# Max Parallel Export Tasks: {o_maxParallelExportTasks}");
@@ -1258,7 +1261,7 @@ public static void ShowCurrentOptions()
12581261
sb.AppendLine($"# Log Output: {o_logOutput}");
12591262
sb.AppendLine($"# Export Asset List: {o_exportAssetList}");
12601263
sb.AppendLine(ShowCurrentFilter());
1261-
sb.AppendLine($"# Unity Version: \"{o_unityVersion}\"");
1264+
sb.AppendLine($"# Unity Version: {unityVer}");
12621265
break;
12631266
case WorkMode.Live2D:
12641267
case WorkMode.SplitObjects:
@@ -1278,7 +1281,7 @@ public static void ShowCurrentOptions()
12781281
sb.AppendLine($"# Force Bezier: {f_l2dForceBezier }");
12791282
sb.AppendLine($"# Assembly Path: \"{o_assemblyPath}\"");
12801283
}
1281-
sb.AppendLine($"# Unity Version: \"{o_unityVersion}\"");
1284+
sb.AppendLine($"# Unity Version: {unityVer}");
12821285
break;
12831286
}
12841287
sb.AppendLine("======");

0 commit comments

Comments
 (0)