3 writes to Name
NuGet.CommandLine.XPlat (3)
Program.cs (2)
322
app.
Name
= DotnetPackageAppName;
330
app.
Name
= DotnetNuGetAppName;
src\nuget-client\artifacts\.packages\microsoft.extensions.commandlineutils.sources\3.0.0-preview6.19253.5\contentFiles\cs\netstandard1.0\shared\CommandLine\CommandLineApplication.cs (1)
68
var command = new CommandLineApplication(throwOnUnexpectedArg) {
Name
= name, Parent = this };
18 references to Name
NuGet.CommandLine.XPlat (18)
Commands\PackageReferenceCommands\AddPackageReferenceCommand.cs (5)
85
ValidateArgument(id, addpkg.
Name
);
86
ValidateArgument(projectPath, addpkg.
Name
);
87
ValidateProjectPath(projectPath, addpkg.
Name
, virtualProjectBuilder);
90
ValidateArgument(dgFilePath, addpkg.
Name
);
95
ValidatePrerelease(prerelease.HasValue(), noVersion, addpkg.
Name
);
Commands\PackageReferenceCommands\RemovePackageReferenceCommand.cs (3)
49
ValidateArgument(id, removePkg.
Name
);
50
ValidateArgument(projectPath, removePkg.
Name
);
51
ValidateProjectPath(projectPath, removePkg.
Name
, virtualProjectBuilder);
Program.cs (2)
159
if (app.
Name
== DotnetPackageAppName)
359
if (arg == command.
Name
)
src\nuget-client\artifacts\.packages\microsoft.extensions.commandlineutils.sources\3.0.0-preview6.19253.5\contentFiles\cs\netstandard1.0\shared\CommandLine\CommandLineApplication.cs (8)
257
if (string.Equals(subcommand.
Name
, arg, StringComparison.OrdinalIgnoreCase))
362
headerBuilder.Insert(6, string.Format(" {0}", cmd.
Name
));
367
if (commandName == null || string.Equals(
Name
, commandName, StringComparison.OrdinalIgnoreCase))
373
target = Commands.SingleOrDefault(cmd => string.Equals(cmd.
Name
, commandName, StringComparison.OrdinalIgnoreCase));
430
var maxCmdLen = commands.Max(c => c.
Name
.Length);
432
foreach (var cmd in commands.OrderBy(c => c.
Name
))
434
commandsBuilder.AppendFormat(outputFormat, cmd.
Name
, cmd.Description);
441
commandsBuilder.AppendFormat($"Use \"{target.
Name
} [command] --{OptionHelp.LongName}\" for more information about a command.");