Skip to content

Commit c6f5849

Browse files
authored
Merge pull request #178 from dotnet-campus/t/lindexi/DebUos
升级库和适配变更
2 parents fe08cd0 + 3ee3d82 commit c6f5849

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

DebUOS/Packaging.DebUOS.Tool/Packaging.DebUOS.Tool.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
</ProjectReference>
3131
</ItemGroup>
3232
<ItemGroup>
33-
<PackageReference Include="dotnetCampus.CommandLine" Version="4.0.0-alpha04" />
33+
<PackageReference Include="dotnetCampus.CommandLine" Version="4.1.2" />
3434
</ItemGroup>
3535
</Project>

DebUOS/Packaging.DebUOS.Tool/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,12 @@
7777
if (optionAttribute != null)
7878
{
7979
stringBuilder.AppendLine(
80-
$"-{optionAttribute.ShortName} {(optionAttribute.LongName ?? string.Empty).PadRight(10)} {optionAttribute.Description} {optionAttribute.LocalizableDescription}");
80+
$"-{optionAttribute.ShortNames?.FirstOrDefault()} {(optionAttribute.LongNames?.FirstOrDefault() ?? string.Empty).PadRight(10)} {optionAttribute.Description} {optionAttribute.LocalizableDescription}");
8181
}
8282
}
8383

84+
stringBuilder.AppendLine($"OriginCommandline: {Environment.CommandLine}");
85+
8486
Console.WriteLine(stringBuilder.ToString());
8587
}
8688
}

0 commit comments

Comments
 (0)