3 writes to Arguments
Microsoft.DotNet.MacOsPkg.Cli (3)
Program.cs (3)
45
Arguments
= { unpackSrcArgument, unpackDestinationArgument }
58
Arguments
= { packSrcArgument, packDstArgument }
70
Arguments
= { pkgOrAppArgument }
147 references to Arguments
aspire (27)
Commands\AddCommand.cs (1)
57
Arguments
.Add(s_integrationArgument);
Commands\ConfigCommand.cs (4)
79
Arguments
.Add(s_keyArgument);
137
Arguments
.Add(s_keyArgument);
138
Arguments
.Add(s_valueArgument);
358
Arguments
.Add(s_keyArgument);
Commands\DescribeCommand.cs (1)
107
Arguments
.Add(s_resourceArgument);
Commands\DoCommand.cs (1)
33
Arguments
.Add(_stepArgument);
Commands\DocsGetCommand.cs (1)
53
Arguments
.Add(s_slugArgument);
Commands\DocsSearchCommand.cs (1)
54
Arguments
.Add(s_queryArgument);
Commands\ExportCommand.cs (1)
65
Arguments
.Add(s_resourceArgument);
Commands\GroupedHelpWriter.cs (2)
263
if (cmd.
Arguments
.Count == 0)
269
foreach (var arg in cmd.
Arguments
)
Commands\LogsCommand.cs (1)
122
Arguments
.Add(s_resourceArgument);
Commands\McpCallCommand.cs (2)
58
Arguments
.Add(s_resourceArgument);
59
Arguments
.Add(s_toolArgument);
Commands\ResourceCommand.cs (2)
61
Arguments
.Add(s_resourceArgument);
62
Arguments
.Add(s_commandArgument);
Commands\Sdk\SdkDumpCommand.cs (1)
64
Arguments
.Add(s_integrationArgument);
Commands\Sdk\SdkGenerateCommand.cs (1)
57
Arguments
.Add(s_integrationArgument);
Commands\SecretDeleteCommand.cs (1)
39
Arguments
.Add(s_keyArgument);
Commands\SecretGetCommand.cs (1)
39
Arguments
.Add(s_keyArgument);
Commands\SecretSetCommand.cs (2)
43
Arguments
.Add(s_keyArgument);
44
Arguments
.Add(s_valueArgument);
Commands\TelemetryLogsCommand.cs (1)
66
Arguments
.Add(s_resourceArgument);
Commands\TelemetrySpansCommand.cs (1)
62
Arguments
.Add(s_resourceArgument);
Commands\TelemetryTracesCommand.cs (1)
61
Arguments
.Add(s_resourceArgument);
Commands\WaitCommand.cs (1)
60
Arguments
.Add(s_resourceArgument);
crossgen2 (2)
Crossgen2RootCommand.cs (1)
167
Arguments
.Add(InputFilePaths);
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (1)
272
foreach (Argument argument in res.CommandResult.Command.
Arguments
)
dotnet (7)
CliSchema.cs (2)
108
var arguments = CreateArgumentsDictionary(command.
Arguments
);
181
CreateArgumentsDictionary(subCommand.
Arguments
),
Commands\NuGet\NuGetCommand.cs (1)
27
&& parseResult.CommandResult.Command.
Arguments
.FirstOrDefault() is Argument<string> pathArg
Parser.cs (4)
398
for (int i = 0; i < listCommand.
Arguments
.Count; i++)
400
if (listCommand.
Arguments
[i].Name == CliStrings.SolutionOrProjectArgumentName)
403
listCommand.
Arguments
[i] = ListCommandDefinition.CreateSlnOrProjectArgument(CliStrings.ProjectArgumentName, CliStrings.ProjectArgumentDescription);
411
foreach (var argument in command.
Arguments
)
dotnet-format (1)
Commands\FormatCommandCommon.cs (1)
120
command.
Arguments
.Add(SlnOrProjectArgument);
ilasm (1)
IlasmRootCommand.cs (1)
124
Arguments
.Add(InputFilePaths);
ilc (2)
ILCompilerRootCommand.cs (1)
194
Arguments
.Add(InputFilePaths);
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (1)
272
foreach (Argument argument in res.CommandResult.Command.
Arguments
)
Microsoft.DotNet.Cli.Definitions (68)
Commands\Build\BuildCommandDefinition.cs (1)
75
Arguments
.Add(SlnOrProjectOrFileArgument);
Commands\Clean\CleanCommandDefinition.cs (1)
53
Arguments
.Add(SlnOrProjectOrFileArgument);
Commands\DotNetCommandDefinition.cs (1)
119
Arguments
.Add(DotnetSubCommand);
Commands\Format\FormatCommandDefinition.cs (1)
19
base.
Arguments
.Add(Arguments);
Commands\Fsi\FsiCommandDefinition.cs (1)
19
base.
Arguments
.Add(Arguments);
Commands\Help\HelpCommandDefinition.cs (1)
23
Arguments
.Add(Argument);
Commands\Hidden\Add\AddCommandDefinition.cs (1)
28
Arguments
.Add(ProjectOrFileArgument);
Commands\Hidden\Complete\CompleteCommandDefinition.cs (1)
22
Arguments
.Add(PathArgument);
Commands\Hidden\InternalReportInstallSuccess\InternalReportInstallSuccessCommandDefinition.cs (1)
16
Arguments
.Add(Argument);
Commands\Hidden\List\ListCommandDefinition.cs (1)
34
Arguments
.Add(SlnOrProjectOrFileArgument);
Commands\Hidden\List\ListReferenceCommandDefinition.cs (1)
16
Arguments
.Add(Argument);
Commands\Hidden\Remove\RemoveCommandDefinition.cs (1)
29
Arguments
.Add(ProjectOrFileArgument);
Commands\MSBuild\MSBuildCommandDefinition.cs (1)
21
base.
Arguments
.Add(Arguments);
Commands\New\InstantiateCommandDefinition.cs (2)
25
Arguments
.Add(ShortNameArgument);
26
Arguments
.Add(RemainingArguments);
Commands\New\NewCommandDefinition.cs (2)
138
Arguments
.Add(ShortNameArgument);
139
Arguments
.Add(RemainingArguments);
Commands\New\NewDetailsCommandDefinition.cs (1)
31
Arguments
.Add(NameArgument);
Commands\New\NewInstallCommandDefinition.cs (1)
37
Arguments
.Add(NameArgument);
Commands\New\NewListCommandDefinition.cs (1)
52
Arguments
.Add(NameArgument);
Commands\New\NewSearchCommandDefinition.cs (1)
45
Arguments
.Add(NameArgument);
Commands\New\NewUninstallCommandDefinition.cs (1)
25
Arguments
.Add(NameArgument);
Commands\NuGet\NuGetCommandDefinition.cs (14)
81
Arguments
.Add(PackagePathsArgument);
117
Arguments
.Add(FoldersArgument);
174
Arguments
.Add(PackagePathsArgument);
214
Arguments
.Add(PackagePathsArgument);
279
Arguments
.Add(NameArgument);
280
Arguments
.Add(PackageArgument);
293
Arguments
.Add(NameArgument);
294
Arguments
.Add(PackageArgument);
308
Arguments
.Add(NameArgument);
327
Arguments
.Add(NameArgument);
328
Arguments
.Add(FingerprintArgument);
341
Arguments
.Add(NameArgument);
352
Arguments
.Add(NameArgument);
384
Arguments
.Add(PackagePathsArgument);
Commands\Pack\PackCommandDefinition.cs (1)
98
Arguments
.Add(SlnOrProjectOrFileArgument);
Commands\Package\PackageAddCommandDefinition.cs (1)
81
Arguments
.Add(PackageIdArgument);
Commands\Package\PackageRemoveCommandDefinition.cs (1)
39
Arguments
.Add(CmdPackageArgument);
Commands\Package\PackageSearchCommandDefinition.cs (1)
74
Arguments
.Add(SearchTermArgument);
Commands\Project\ProjectConvertCommandDefinition.cs (1)
46
Arguments
.Add(FileArgument);
Commands\Publish\PublishCommandDefinition.cs (1)
73
Arguments
.Add(SlnOrProjectOrFileArgument);
Commands\Reference\ReferenceAddCommandDefinition.cs (1)
46
Arguments
.Add(ProjectPathArgument);
Commands\Reference\ReferenceRemoveCommandDefinition.cs (1)
38
Arguments
.Add(ProjectPathArgument);
Commands\Restore\RestoreCommandDefinition.cs (1)
68
Arguments
.Add(SlnOrProjectOrFileArgument);
Commands\Run\RunCommandDefinition.cs (1)
127
Arguments
.Add(ApplicationArguments);
Commands\Solution\SolutionAddCommandDefinition.cs (1)
40
Arguments
.Add(ProjectPathArgument);
Commands\Solution\SolutionCommandDefinition.cs (1)
36
Arguments
.Add(SlnArgument);
Commands\Solution\SolutionRemoveCommandDefinition.cs (1)
20
Arguments
.Add(ProjectPathArgument);
Commands\Tool\StoreCommandDefinition.cs (1)
81
Arguments
.Add(Argument);
Commands\Tool\ToolExecuteCommandDefinition.cs (2)
40
Arguments
.Add(PackageIdentityArgument);
41
Arguments
.Add(CommandArgument);
Commands\Tool\ToolInstallCommandDefinition.cs (1)
30
Arguments
.Add(PackageIdentityArgument);
Commands\Tool\ToolListCommandDefinition.cs (1)
32
Arguments
.Add(PackageIdArgument);
Commands\Tool\ToolRunCommandDefinition.cs (2)
32
Arguments
.Add(CommandNameArgument);
33
Arguments
.Add(CommandArgument);
Commands\Tool\ToolSearchCommandDefinition.cs (1)
39
Arguments
.Add(SearchTermArgument);
Commands\Tool\ToolUninstallCommandDefinition.cs (1)
27
Arguments
.Add(PackageIdArgument);
Commands\Tool\ToolUpdateCommandDefinition.cs (1)
16
Arguments
.Add(PackageIdentityArgument);
Commands\Workload\WorkloadInstallCommandDefinition.cs (1)
16
Arguments
.Add(WorkloadIdArgument);
Commands\Workload\WorkloadRestoreCommandDefinition.cs (1)
21
Arguments
.Add(SlnOrProjectArgument);
Commands\Workload\WorkloadSearchCommandDefinition.cs (1)
25
Arguments
.Add(WorkloadIdStubArgument);
Commands\Workload\WorkloadSearchVersionsCommandDefinition.cs (1)
31
Arguments
.Add(WorkloadVersionArgument);
Commands\Workload\WorkloadUninstallCommandDefinition.cs (1)
18
Arguments
.Add(WorkloadIdArgument);
Help\HelpBuilder.cs (4)
269
foreach (var argument in command.
Arguments
)
406
if (parentCommand.
Arguments
.Any())
408
yield return FormatArgumentUsage(parentCommand.
Arguments
);
436
.SelectMany(cmd => cmd.
Arguments
.Where(a => !a.Hidden))
Microsoft.TemplateEngine.Cli (4)
Commands\BaseCommand.cs (2)
84
Arguments
.AddRange(definition.
Arguments
);
Commands\create\InstantiateCommand.Help.cs (2)
445
foreach (Argument arg in command.
Arguments
)
495
yield return CommandLineUtils.FormatArgumentUsage(command.
Arguments
.ToArray());
NuGet.CommandLine.XPlat (9)
Commands\ConfigCommands\ConfigCommand.cs (4)
152
cmd.
Arguments
.Add(AllOrConfigKeyArgument);
174
cmd.
Arguments
.Add(SetConfigKeyArgument);
175
cmd.
Arguments
.Add(ConfigValueArgument);
195
cmd.
Arguments
.Add(UnsetConfigKeyArgument);
Commands\Package\Download\PackageDownloadCommand.cs (1)
69
downloadCommand.
Arguments
.Add(packagesArguments);
Commands\Package\Update\PackageUpdateCommand.cs (1)
33
command.
Arguments
.Add(packagesArguments);
Commands\PackageSearch\PackageSearchCommand.cs (1)
95
searchCommand.
Arguments
.Add(searchTerm);
Commands\Why\WhyCommand.cs (2)
117
whyCommand.
Arguments
.Add(path);
118
whyCommand.
Arguments
.Add(package);
System.CommandLine (17)
Command.cs (3)
54
foreach (var argument in
Arguments
)
220
public void Add(Argument argument) =>
Arguments
.Add(argument);
291
var arguments =
Arguments
;
Help\HelpBuilder.cs (3)
140
if (parentCommand.
Arguments
.Any())
142
yield return FormatArgumentUsage(parentCommand.
Arguments
);
171
.SelectMany(cmd => cmd.
Arguments
.Where(a => !a.Hidden))
Help\HelpBuilderExtensions.cs (1)
18
foreach (var argument in command.
Arguments
)
Parsing\ArgumentResult.cs (2)
98
var arguments = parent.Command.
Arguments
;
105
Argument nextArgument = parent.Command.
Arguments
[nextArgumentIndex];
Parsing\CommandResult.cs (1)
146
var arguments = Command.
Arguments
;
Parsing\ParseDiagramAction.cs (1)
72
argumentResult.Argument.FirstParent!.Symbol is Command { HasArguments: true,
Arguments
.Count: > 1 };
Parsing\ParseOperation.cs (4)
103
var arguments = _innermostCommandResult.Command.
Arguments
;
145
var arguments = _innermostCommandResult.Command.
Arguments
;
156
while (_innermostCommandResult.Command.HasArguments && currentArgumentIndex < _innermostCommandResult.Command.
Arguments
.Count)
158
Argument argument = _innermostCommandResult.Command.
Arguments
[currentArgumentIndex];
Parsing\SymbolResultTree.cs (2)
109
for (var i = 0; i < command.
Arguments
.Count; i++)
111
AddToSymbolsByName(command.
Arguments
[i], command);
System.CommandLine.StaticCompletions (9)
CompletionsGenerateScriptCommandDefinition.cs (1)
15
Arguments
.Add(ShellArgument = parent.ShellArgument);
shells\BashShellProvider.cs (1)
48
var positionalArgumentCompletions = PositionalArgumentTerms(command.
Arguments
.Where(a => !a.Hidden).ToArray());
shells\FishShellProvider.cs (1)
341
foreach (var arg in cmd.
Arguments
.Where(a => !a.Hidden))
shells\PowershellShellProvider.cs (3)
158
GenerateDynamicCompletionsForArguments(commandNameList, command.
Arguments
, writer);
183
foreach (var argument in command.
Arguments
)
215
if (command.
Arguments
.Any(argument => argument.IsDynamic))
shells\ZshShellProvider.cs (3)
109
foreach (var arg in command.
Arguments
.Where(c => !c.Hidden))
196
var parentArguments = command.Parents.OfType<Command>().SelectMany(parent => parent.
Arguments
).Select(arg => arg.Name).ToHashSet();
197
var pos = command.
Arguments
.Where(a => !parentArguments.Contains(a.Name) && !a.Hidden).Count() + 1;