We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2d6491 commit 291abbdCopy full SHA for 291abbd
src/Cli/dotnet/CommonArguments.cs
@@ -24,6 +24,10 @@ public static CliArgument<PackageIdentity> PackageIdentityArgument(bool requireA
24
25
private static PackageIdentity ParsePackageIdentity(ArgumentResult argumentResult)
26
{
27
+ if (argumentResult.Tokens.Count == 0)
28
+ {
29
+ return null;
30
+ }
31
var token = argumentResult.Tokens[0].Value;
32
var versionSeparatorIndex = token.IndexOf('@');
33
if (versionSeparatorIndex == -1)
0 commit comments