-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Area-Toolsrelease blockinguntriagedRequest triage from a team memberRequest triage from a team member
Description
Describe the bug
When running the latest API Compat as a tool it throws an exception.
Unhandled exception. System.ArgumentException: Names and aliases cannot contain whitespace: "If true, preserves unnecessary suppressions when re-generating the suppression file." (Parameter 'alias')
at System.CommandLine.CliSymbol.ThrowIfEmptyOrWithWhitespaces(String value, String paramName, Boolean canContainWhitespaces)
at System.CommandLine.AliasSet..ctor(String[] aliases)
at System.CommandLine.CliOption..ctor(String name, String[] aliases)
at System.CommandLine.CliOption`1..ctor(String name, String[] aliases, CliArgument`1 argument)
at System.CommandLine.CliOption`1..ctor(String name, String[] aliases)
at Microsoft.DotNet.ApiCompat.Tool.Program.Main(String[] args) in /_/src/ApiCompat/Microsoft.DotNet.ApiCompat.Tool/Program.cs:line 27
To Reproduce
dotnet tool install --global Microsoft.DotNet.ApiCompat.Tool --prerelease --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json
apicompat /?
Regression seems to be here:
a3303b6#diff-63b29fc47a05b246616dfc3b231d0e9471b6d1ca65aeee8c83a8d8fa55ca1cc8R30-R33
Metadata
Metadata
Assignees
Labels
Area-Toolsrelease blockinguntriagedRequest triage from a team memberRequest triage from a team member