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