From 3ee3d82a2e9380454716380219dbc0e493df2c4a Mon Sep 17 00:00:00 2001 From: lindexi Date: Mon, 26 Jan 2026 10:17:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E5=BA=93=E5=92=8C=E9=80=82?= =?UTF-8?q?=E9=85=8D=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DebUOS/Packaging.DebUOS.Tool/Packaging.DebUOS.Tool.csproj | 2 +- DebUOS/Packaging.DebUOS.Tool/Program.cs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/DebUOS/Packaging.DebUOS.Tool/Packaging.DebUOS.Tool.csproj b/DebUOS/Packaging.DebUOS.Tool/Packaging.DebUOS.Tool.csproj index d455ce5..3f930ac 100644 --- a/DebUOS/Packaging.DebUOS.Tool/Packaging.DebUOS.Tool.csproj +++ b/DebUOS/Packaging.DebUOS.Tool/Packaging.DebUOS.Tool.csproj @@ -30,6 +30,6 @@ - + diff --git a/DebUOS/Packaging.DebUOS.Tool/Program.cs b/DebUOS/Packaging.DebUOS.Tool/Program.cs index f5df754..40a287d 100644 --- a/DebUOS/Packaging.DebUOS.Tool/Program.cs +++ b/DebUOS/Packaging.DebUOS.Tool/Program.cs @@ -77,10 +77,12 @@ if (optionAttribute != null) { stringBuilder.AppendLine( - $"-{optionAttribute.ShortName} {(optionAttribute.LongName ?? string.Empty).PadRight(10)} {optionAttribute.Description} {optionAttribute.LocalizableDescription}"); + $"-{optionAttribute.ShortNames?.FirstOrDefault()} {(optionAttribute.LongNames?.FirstOrDefault() ?? string.Empty).PadRight(10)} {optionAttribute.Description} {optionAttribute.LocalizableDescription}"); } } + stringBuilder.AppendLine($"OriginCommandline: {Environment.CommandLine}"); + Console.WriteLine(stringBuilder.ToString()); } }