107 references to Argument
aspire (23)
Commands\AddCommand.cs (1)
32private static readonly Argument<string> s_integrationArgument = new("integration")
Commands\ConfigCommand.cs (4)
71private static readonly Argument<string> s_keyArgument = new("key") 121private static readonly Argument<string> s_keyArgument = new("key") 125private static readonly Argument<string> s_valueArgument = new("value") 346private static readonly Argument<string> s_keyArgument = new("key")
Commands\DescribeCommand.cs (1)
76private static readonly Argument<string?> s_resourceArgument = new("resource")
Commands\DoCommand.cs (1)
28_stepArgument = new Argument<string>("step")
Commands\DocsGetCommand.cs (1)
25private static readonly Argument<string> s_slugArgument = new("slug")
Commands\DocsSearchCommand.cs (1)
26private static readonly Argument<string> s_queryArgument = new("query")
Commands\ExportCommand.cs (1)
41private static readonly Argument<string?> s_resourceArgument = new("resource")
Commands\LogsCommand.cs (1)
81private static readonly Argument<string?> s_resourceArgument = new("resource")
Commands\McpCallCommand.cs (2)
28private static readonly Argument<string> s_resourceArgument = new("resource") 33private static readonly Argument<string> s_toolArgument = new("tool")
Commands\ResourceCommand.cs (2)
24private static readonly Argument<string> s_resourceArgument = new("resource") 29private static readonly Argument<string> s_commandArgument = new("command")
Commands\Sdk\SdkDumpCommand.cs (1)
37private static readonly Argument<string[]> s_integrationArgument = new("integrations")
Commands\Sdk\SdkGenerateCommand.cs (1)
27private static readonly Argument<FileInfo> s_integrationArgument = new("integration")
Commands\SecretDeleteCommand.cs (1)
21private static readonly Argument<string> s_keyArgument = new("key")
Commands\SecretGetCommand.cs (1)
21private static readonly Argument<string> s_keyArgument = new("key")
Commands\SecretSetCommand.cs (2)
20private static readonly Argument<string> s_keyArgument = new("key") 25private static readonly Argument<string> s_valueArgument = new("value")
Commands\TelemetryCommandHelpers.cs (1)
34internal static Argument<string?> CreateResourceArgument() => new("resource")
Commands\WaitCommand.cs (1)
25private static readonly Argument<string> s_resourceArgument = new("resource")
cdac-build-tool (1)
ComposeCommand.cs (1)
13private readonly Argument<string[]> inputFiles = new("INPUT [INPUTS...]") { Arity = ArgumentArity.OneOrMore, Description = "One or more input files" };
crossgen2 (1)
Crossgen2RootCommand.cs (1)
20new("input-file-path") { CustomParser = result => Helpers.BuildPathDictionary(result.Tokens, true), Description = "Input file(s)", Arity = ArgumentArity.OneOrMore };
dotnet-format (1)
Commands\FormatCommandCommon.cs (1)
23public static readonly Argument<string> SlnOrProjectArgument = new Argument<string>(Resources.SolutionOrProjectArgumentName)
dotnet-sourcelink (1)
dotnet-suggest (1)
SuggestionDispatcher.cs (1)
23var shellTypeArgument = new Argument<ShellType>(nameof(ShellType));
ilasm (1)
IlasmRootCommand.cs (1)
13new("input-file-paths") { Description = "Input IL source file(s)", Arity = ArgumentArity.OneOrMore };
ilc (1)
ILCompilerRootCommand.cs (1)
18new("input-file-path") { CustomParser = result => Helpers.BuildPathDictionary(result.Tokens, true), Description = "Input file(s)", Arity = ArgumentArity.OneOrMore };
Microsoft.DotNet.Cli.Definitions (60)
Commands\Build\BuildCommandDefinition.cs (1)
14public readonly Argument<string[]> SlnOrProjectOrFileArgument = new(CommandDefinitionStrings.SolutionOrProjectOrFileArgumentName)
Commands\Clean\CleanCommandDefinition.cs (1)
15public readonly Argument<string[]> SlnOrProjectOrFileArgument = new(CommandDefinitionStrings.SolutionOrProjectOrFileArgumentName)
Commands\DotNetCommandDefinition.cs (1)
43public readonly Argument<string> DotnetSubCommand = new("subcommand")
Commands\Format\FormatCommandDefinition.cs (1)
13public new readonly Argument<string[]> Arguments = new("arguments");
Commands\Fsi\FsiCommandDefinition.cs (1)
13public new readonly Argument<string[]> Arguments = new("arguments");
Commands\Help\HelpCommandDefinition.cs (1)
13public readonly Argument<string[]> Argument = new(CommandDefinitionStrings.CommandArgumentName)
Commands\Hidden\Complete\CompleteCommandDefinition.cs (1)
10public readonly Argument<string> PathArgument = new("path");
Commands\Hidden\InternalReportInstallSuccess\InternalReportInstallSuccessCommandDefinition.cs (1)
10public readonly Argument<string> Argument = new("internal-reportinstallsuccess-arg");
Commands\Hidden\List\ListCommandDefinition.cs (1)
17=> new Argument<string>(name)
Commands\Hidden\List\ListReferenceCommandDefinition.cs (1)
12public readonly Argument<string> Argument = new("argument") { Arity = ArgumentArity.ZeroOrOne, Hidden = true };
Commands\MSBuild\MSBuildCommandDefinition.cs (1)
13public new readonly Argument<string[]> Arguments = new("arguments");
Commands\New\InstantiateCommandDefinition.cs (2)
14public readonly Argument<string[]> RemainingArguments = new("template-args") 38public static Argument<string> CreateShortNameArgument() => new("template-short-name")
Commands\New\NewCommandDefinition.cs (2)
89public readonly Argument<string[]> RemainingArguments = new(RemainingArgumentsName) 177public static Argument<string> CreateShortNameArgument() => new(ShortNameArgumentName)
Commands\New\NewDetailsCommandDefinition.cs (1)
19public readonly Argument<string> NameArgument = new("package-identifier")
Commands\New\NewInstallCommandDefinition.cs (1)
45public static Argument<string[]> CreateNameArgument() => new("package")
Commands\New\NewListCommandDefinition.cs (1)
70public static Argument<string> CreateNameArgument() => new("template-name")
Commands\New\NewSearchCommandDefinition.cs (1)
63public static Argument<string> CreateNameArgument() => new("template-name")
Commands\New\NewUninstallCommandDefinition.cs (1)
29public static Argument<string[]> CreateNameArgument() => new("package")
Commands\NuGet\NuGetCommandDefinition.cs (14)
52public readonly Argument<IEnumerable<string>> PackagePathsArgument = new("package-paths") 114FoldersArgument = new Argument<string>("folders"); 127public readonly Argument<IEnumerable<string>> PackagePathsArgument = new("package-paths") 195public readonly Argument<IEnumerable<string>> PackagePathsArgument = new("package-paths") 273public readonly Argument<string> NameArgument = new("NAME"); 274public readonly Argument<string> PackageArgument = new("PACKAGE"); 287public readonly Argument<string> NameArgument = new("NAME"); 288public readonly Argument<string> PackageArgument = new("PACKAGE"); 302public readonly Argument<string> NameArgument = new("NAME"); 316public readonly Argument<string> NameArgument = new("NAME"); 317public readonly Argument<string> FingerprintArgument = new("FINGERPRINT"); 336public readonly Argument<string> NameArgument = new("NAME"); 347public readonly Argument<string> NameArgument = new("NAME"); 358public readonly Argument<IEnumerable<string>> PackagePathsArgument = new("package-paths")
Commands\Pack\PackCommandDefinition.cs (1)
16public readonly Argument<string[]> SlnOrProjectOrFileArgument = new(CommandDefinitionStrings.SolutionOrProjectOrFileArgumentName)
Commands\Package\PackageCommandDefinition.cs (1)
32public static Argument<string> CreateProjectOrFileArgument() => new Argument<string>(CommandDefinitionStrings.ProjectOrFileArgumentName)
Commands\Package\PackageRemoveCommandDefinition.cs (1)
26public readonly Argument<string[]> CmdPackageArgument = new(CommandDefinitionStrings.CmdPackage)
Commands\Package\PackageSearchCommandDefinition.cs (1)
13public readonly Argument<string> SearchTermArgument = new("SearchTerm")
Commands\Project\ProjectConvertCommandDefinition.cs (1)
10public readonly Argument<string> FileArgument = new("file")
Commands\Publish\PublishCommandDefinition.cs (1)
14public readonly Argument<string[]> SlnOrProjectOrFileArgument = new(CommandDefinitionStrings.SolutionOrProjectOrFileArgumentName)
Commands\Reference\ReferenceAddCommandDefinition.cs (1)
22public readonly Argument<IEnumerable<string>> ProjectPathArgument = new(CommandDefinitionStrings.ReferenceAddProjectPathArgumentName)
Commands\Reference\ReferenceRemoveCommandDefinition.cs (1)
20public static Argument<IEnumerable<string>> CreateProjectPathArgument() => new(CommandDefinitionStrings.ReferenceRemoveProjectPathArgumentName)
Commands\Restore\RestoreCommandDefinition.cs (1)
14public readonly Argument<string[]> SlnOrProjectOrFileArgument = new(CommandDefinitionStrings.SolutionOrProjectOrFileArgumentName)
Commands\Run\RunCommandDefinition.cs (1)
95public readonly Argument<string[]> ApplicationArguments = new("applicationArguments")
Commands\Solution\SolutionAddCommandDefinition.cs (1)
10public readonly Argument<IEnumerable<string>> ProjectPathArgument = new(CommandDefinitionStrings.AddProjectPathArgumentName)
Commands\Solution\SolutionCommandDefinition.cs (1)
17public readonly Argument<string> SlnArgument = new Argument<string>(CommandDefinitionStrings.SolutionArgumentName)
Commands\Solution\SolutionRemoveCommandDefinition.cs (1)
10public readonly Argument<IEnumerable<string>> ProjectPathArgument = new(CommandDefinitionStrings.RemoveProjectPathArgumentName)
Commands\Tool\StoreCommandDefinition.cs (1)
13public readonly Argument<IEnumerable<string>> Argument = new("argument")
Commands\Tool\ToolExecuteCommandDefinition.cs (1)
21public readonly Argument<IEnumerable<string>> CommandArgument = new("commandArguments")
Commands\Tool\ToolListCommandDefinition.cs (1)
10public readonly Argument<string> PackageIdArgument = new("packageId")
Commands\Tool\ToolRunCommandDefinition.cs (2)
12public readonly Argument<string> CommandNameArgument = new("commandName") 18public readonly Argument<IEnumerable<string>> CommandArgument = new("toolArguments")
Commands\Tool\ToolSearchCommandDefinition.cs (1)
10public readonly Argument<string> SearchTermArgument = new("searchTerm")
Commands\Tool\ToolUninstallCommandDefinition.cs (1)
10public readonly Argument<string> PackageIdArgument = new("packageId")
Commands\Workload\WorkloadCommandDefinitionBase.cs (1)
24public static Argument<IEnumerable<string>> CreateWorkloadIdArgument() => new("workloadId")
Commands\Workload\WorkloadRestoreCommandDefinition.cs (1)
10public readonly Argument<IEnumerable<string>> SlnOrProjectArgument = new(CommandDefinitionStrings.SolutionOrProjectArgumentName)
Commands\Workload\WorkloadSearchCommandDefinition.cs (1)
10public readonly Argument<string> WorkloadIdStubArgument = new(CommandDefinitionStrings.WorkloadIdStubArgumentName)
Commands\Workload\WorkloadSearchVersionsCommandDefinition.cs (1)
10public readonly Argument<IEnumerable<string>> WorkloadVersionArgument = new(CommandDefinitionStrings.WorkloadVersionArgument)
Common\CommonArguments.cs (2)
17new(PackageIdArgumentName) 26new(PackageIdArgumentName)
Microsoft.DotNet.MacOsPkg.Cli (5)
Program.cs (5)
41var unpackSrcArgument = new Argument<string>("src") { Description = "Source path of the .pkg or .app file" }; 42var unpackDestinationArgument = new Argument<string>("dst") { Description = "Destination path to unpack the file" }; 54var packSrcArgument = new Argument<string>("src") { Description = "Source path to pack." }; 55var packDstArgument = new Argument<string>("dst") { Description = "Destination path of the .pkg or .app file." }; 67var pkgOrAppArgument = new Argument<string>("src") { Description = "Input pkg or app to verify." };
Microsoft.TemplateEngine.Cli (1)
Commands\create\InstantiateCommand.NoMatchHandling.cs (1)
182new Argument<string[]>("rem-args")
NuGet.CommandLine.XPlat (9)
Commands\ConfigCommands\ConfigCommand.cs (4)
23private static Argument<string> SetConfigKeyArgument = new Argument<string>(name: "config-key") 29private static Argument<string> UnsetConfigKeyArgument = new Argument<string>(name: "config-key") 35private static Argument<string> ConfigValueArgument = new Argument<string>(name: "config-value") 41private static Argument<string> AllOrConfigKeyArgument = new Argument<string>(name: "all-or-config-key")
Commands\Package\Download\PackageDownloadCommand.cs (1)
29var packagesArguments = new Argument<IReadOnlyList<PackageWithNuGetVersion>>("packages")
Commands\Package\Update\PackageUpdateCommand.cs (1)
27var packagesArguments = new Argument<IReadOnlyList<PackageWithVersionRange>>("packages")
Commands\PackageSearch\PackageSearchCommand.cs (1)
30var searchTerm = new Argument<string>("Search Term")
Commands\Why\WhyCommand.cs (2)
65Argument<string> path = new Argument<string>("PROJECT|SOLUTION|FILE") 100Argument<string> package = new Argument<string>("PACKAGE")
System.CommandLine (1)
Option{T}.cs (1)
20: this(name, aliases, new Argument<T>(name))
System.CommandLine.StaticCompletions (1)
CompletionsCommandDefinition.cs (1)
10public readonly Argument<string> ShellArgument = new("shell")