Skip to content

Commit 7417f7a

Browse files
committed
refactor(OptionsDebugger): 移除多余的换行和分隔线输出
优化调试信息输出格式,删除不必要的空行和分隔线,使输出更加简洁。同时将错误信息从中文改为英文,保持一致性。
1 parent 9369e6a commit 7417f7a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

GameFrameX.Foundation.Options/OptionsDebugger.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ public static class OptionsDebugger
2727
/// <param name="options">解析后的选项对象</param>
2828
public static void PrintParsedOptions<T>(T options) where T : class
2929
{
30-
Console.WriteLine();
3130
Console.WriteLine("╔══════════════════════════════════════════════════════════════════════╗");
3231
Console.WriteLine("║ Command-line parameter and parsed configuration object information ║");
3332
Console.WriteLine("╚══════════════════════════════════════════════════════════════════════╝");
@@ -262,11 +261,10 @@ string BuildBorder(char left, char sep, char right, char fill)
262261
}
263262
catch (Exception ex)
264263
{
265-
Console.WriteLine($"打印配置对象时出错: {ex.Message}");
264+
Console.WriteLine($"An error occurred when printing a configuration object: {ex.Message}");
266265
Console.WriteLine(ex);
267266
}
268267

269-
Console.WriteLine("━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━");
270268
Console.WriteLine();
271269
}
272270

0 commit comments

Comments
 (0)