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