58 references to UnmatchedTokens
aspire (13)
Commands\DashboardRunCommand.cs (1)
121
var unmatchedTokens = parseResult.
UnmatchedTokens
;
Commands\ParseResultHelper.cs (3)
103
if (parseResult.
UnmatchedTokens
.Count > 0)
106
forwardedTokens.AddRange(parseResult.
UnmatchedTokens
);
328
var unmatchedTokens = parseResult.
UnmatchedTokens
;
Commands\PipelineCommandBase.cs (3)
156
var unmatchedTokens = parseResult.
UnmatchedTokens
.ToArray();
181
var commandArgs = GetCommandArgs(parseResult).Concat(parseResult.
UnmatchedTokens
).ToArray();
561
unmatchedTokens = parseResult.
UnmatchedTokens
.ToArray();
Commands\ResourceCommand.cs (3)
128
var capturedArguments = parseResult.
UnmatchedTokens
.ToArray();
317
var unrecognizedCommandOptions = GroupUnrecognizedCommandOptions(parseResult.
UnmatchedTokens
);
349
foreach (var unmatchedToken in parseResult.
UnmatchedTokens
)
Commands\RunCommand.cs (2)
337
UnmatchedTokens = parseResult.
UnmatchedTokens
.ToArray(),
1380
var appHostArgs = parseResult.
UnmatchedTokens
;
Commands\StartCommand.cs (1)
62
var appHostArgs = parseResult.
UnmatchedTokens
;
Aspire.Cli.Tests (21)
Commands\BaseCommandTests.cs (1)
601
Assert.Empty(result.
UnmatchedTokens
);
Commands\DashboardRunCommandTests.cs (1)
95
Assert.Equal("--ASPNETCORE_URLS=http://localhost:9999", Assert.Single(result.
UnmatchedTokens
));
Commands\ParseResultHelperTests.cs (2)
227
Assert.Equal(["--apphost", "app-value"], childParseResult.
UnmatchedTokens
);
249
Assert.Equal(["--secret", "value"], childParseResult.
UnmatchedTokens
);
Commands\RootCommandTests.cs (2)
247
Assert.DoesNotContain("--capture-profile", result.
UnmatchedTokens
);
269
Assert.Equal(["--from-profile", "value"], result.
UnmatchedTokens
);
Commands\RunCommandTests.cs (7)
70
Assert.Empty(result.
UnmatchedTokens
);
3719
Assert.Contains("--custom-arg", result.
UnmatchedTokens
);
3720
Assert.Contains("value", result.
UnmatchedTokens
);
3721
Assert.Contains("--launch-profile", result.
UnmatchedTokens
);
3722
Assert.Contains("E2E", result.
UnmatchedTokens
);
4485
Assert.Equal(["--secret", "value"], childParseResult.
UnmatchedTokens
);
4791
Assert.Equal(expectedAppHostArguments, childParseResult.
UnmatchedTokens
);
Commands\StartCommandTests.cs (6)
118
Assert.Empty(result.
UnmatchedTokens
);
203
Assert.Contains("--custom-arg", result.
UnmatchedTokens
);
204
Assert.Contains("value", result.
UnmatchedTokens
);
205
Assert.Contains("--launch-profile", result.
UnmatchedTokens
);
206
Assert.Contains("E2E", result.
UnmatchedTokens
);
704
Assert.Equal(expectedAppHostArguments, childParseResult.
UnmatchedTokens
);
Projects\DotNetAppHostProjectTests.cs (2)
1127
Assert.Empty(parseResult.
UnmatchedTokens
);
1148
UnmatchedTokens = parseResult.
UnmatchedTokens
.ToArray(),
dotnet (10)
Commands\Hidden\Parse\ParseCommand.cs (2)
22
if (reparsed.
UnmatchedTokens
.Any())
25
Console.WriteLine(string.Join(" ", reparsed.
UnmatchedTokens
));
Commands\Test\MTP\TestCommandOptions.cs (1)
21
ImmutableArray<string> unmatchedTokens = [.. parseResult.
UnmatchedTokens
];
Commands\Test\VSTest\TestCommand.cs (7)
205
? result.
UnmatchedTokens
.TakeWhile(x => x != settings[1])
206
: result.
UnmatchedTokens
;
326
for (int i = 0; i < parseResult.
UnmatchedTokens
.Count - settingsLength; i++)
328
string arg = parseResult.
UnmatchedTokens
[i];
343
IEnumerable<string> globalPropEnumerable = parseResult.
UnmatchedTokens
;
377
if (!TryFromCommandLine(parseResult.
UnmatchedTokens
, out terminalLoggerArg) && !TryFromEnvironmentVariables(out terminalLoggerArg))
379
terminalLoggerArg = FindDefaultValue(parseResult.
UnmatchedTokens
) ?? "auto";
dotnet-aot (2)
src\sdk\src\Cli\dotnet\Commands\Test\AotTestCommand.cs (1)
51
string[] unmatchedTokens = [.. parseResult.
UnmatchedTokens
];
src\sdk\src\Cli\dotnet\Commands\Test\MTP\TestCommandOptions.cs (1)
21
ImmutableArray<string> unmatchedTokens = [.. parseResult.
UnmatchedTokens
];
dotnet-suggest (1)
SuggestionDispatcher.cs (1)
205
var tokens = parseResult.
UnmatchedTokens
;
dotnet-watch (5)
CommandLine\CommandLineOptions.cs (5)
262
var unmatchedTokensBeforeDashDash = parseResult.
UnmatchedTokens
.Count - (dashDashIndex >= 0 ? parseResult.Tokens.Count - dashDashIndex - 1 : 0);
271
for (int i = 0; i < parseResult.
UnmatchedTokens
.Count; i++)
273
var token = parseResult.
UnmatchedTokens
[i];
335
var unmatchedTokensBeforeDashDash = parseResult.
UnmatchedTokens
.Count - (dashDashIndex >= 0 ? parseResult.Tokens.Count - dashDashIndex - 1 : 0);
343
if (knownCommandsByName.TryGetValue(parseResult.
UnmatchedTokens
[i], out var explicitCommand))
Microsoft.DotNet.Cli.Utils (1)
MSBuildArgs.cs (1)
121
var otherMSBuildArgs = parseResult.
UnmatchedTokens
.ToArray();
Microsoft.TemplateEngine.Cli (1)
Commands\create\TemplateResult.cs (1)
68
foreach (var unmatchedToken in parseResult.
UnmatchedTokens
)
System.CommandLine (4)
Completions\CompletionContext.cs (1)
82
if (parseResult.
UnmatchedTokens
.Count > 0 ||
Invocation\ParseErrorAction.cs (1)
90
var unmatchedTokens = parseResult.
UnmatchedTokens
;
Parsing\ArgumentResult.cs (1)
67
/// Specifies the maximum number of tokens to consume for the argument. Remaining tokens are passed on and can be consumed by later arguments, or will otherwise be added to <see cref="ParseResult.
UnmatchedTokens
"/>.
Parsing\ParseDiagramAction.cs (1)
38
var unmatchedTokens = parseResult.
UnmatchedTokens
;