48 references to UnmatchedTokens
aspire (13)
Commands\DashboardRunCommand.cs (1)
121var unmatchedTokens = parseResult.UnmatchedTokens;
Commands\ParseResultHelper.cs (3)
103if (parseResult.UnmatchedTokens.Count > 0) 106forwardedTokens.AddRange(parseResult.UnmatchedTokens); 328var unmatchedTokens = parseResult.UnmatchedTokens;
Commands\PipelineCommandBase.cs (3)
156var unmatchedTokens = parseResult.UnmatchedTokens.ToArray(); 181var commandArgs = GetCommandArgs(parseResult).Concat(parseResult.UnmatchedTokens).ToArray(); 561unmatchedTokens = parseResult.UnmatchedTokens.ToArray();
Commands\ResourceCommand.cs (3)
129var capturedArguments = parseResult.UnmatchedTokens.ToArray(); 318var unrecognizedCommandOptions = GroupUnrecognizedCommandOptions(parseResult.UnmatchedTokens); 350foreach (var unmatchedToken in parseResult.UnmatchedTokens)
Commands\RunCommand.cs (2)
365UnmatchedTokens = parseResult.UnmatchedTokens.ToArray(), 1484var appHostArgs = parseResult.UnmatchedTokens;
Commands\StartCommand.cs (1)
62var appHostArgs = parseResult.UnmatchedTokens;
Aspire.Cli.Tests (21)
Commands\BaseCommandTests.cs (1)
679Assert.Empty(result.UnmatchedTokens);
Commands\DashboardRunCommandTests.cs (1)
95Assert.Equal("--ASPNETCORE_URLS=http://localhost:9999", Assert.Single(result.UnmatchedTokens));
Commands\ParseResultHelperTests.cs (2)
227Assert.Equal(["--apphost", "app-value"], childParseResult.UnmatchedTokens); 249Assert.Equal(["--secret", "value"], childParseResult.UnmatchedTokens);
Commands\RootCommandTests.cs (2)
247Assert.DoesNotContain("--capture-profile", result.UnmatchedTokens); 269Assert.Equal(["--from-profile", "value"], result.UnmatchedTokens);
Commands\RunCommandTests.cs (7)
72Assert.Empty(result.UnmatchedTokens); 4399Assert.Contains("--custom-arg", result.UnmatchedTokens); 4400Assert.Contains("value", result.UnmatchedTokens); 4401Assert.Contains("--launch-profile", result.UnmatchedTokens); 4402Assert.Contains("E2E", result.UnmatchedTokens); 5165Assert.Equal(["--secret", "value"], childParseResult.UnmatchedTokens); 5471Assert.Equal(expectedAppHostArguments, childParseResult.UnmatchedTokens);
Commands\StartCommandTests.cs (6)
119Assert.Empty(result.UnmatchedTokens); 204Assert.Contains("--custom-arg", result.UnmatchedTokens); 205Assert.Contains("value", result.UnmatchedTokens); 206Assert.Contains("--launch-profile", result.UnmatchedTokens); 207Assert.Contains("E2E", result.UnmatchedTokens); 705Assert.Equal(expectedAppHostArguments, childParseResult.UnmatchedTokens);
Projects\DotNetAppHostProjectTests.cs (2)
1156Assert.Empty(parseResult.UnmatchedTokens); 1177UnmatchedTokens = parseResult.UnmatchedTokens.ToArray(),
dotnet-aot (2)
parent\dotnet\Commands\Test\AotTestCommand.cs (1)
51string[] unmatchedTokens = [.. parseResult.UnmatchedTokens];
parent\dotnet\Commands\Test\MTP\TestCommandOptions.cs (1)
21ImmutableArray<string> unmatchedTokens = [.. parseResult.UnmatchedTokens];
dotnet-suggest (1)
SuggestionDispatcher.cs (1)
205var tokens = parseResult.UnmatchedTokens;
dotnet-watch (5)
CommandLine\CommandLineOptions.cs (5)
270var unmatchedTokensBeforeDashDash = parseResult.UnmatchedTokens.Count - (dashDashIndex >= 0 ? parseResult.Tokens.Count - dashDashIndex - 1 : 0); 281for (int i = 0; i < parseResult.UnmatchedTokens.Count; i++) 283var token = parseResult.UnmatchedTokens[i]; 354var unmatchedTokensBeforeDashDash = parseResult.UnmatchedTokens.Count - (dashDashIndex >= 0 ? parseResult.Tokens.Count - dashDashIndex - 1 : 0); 362if (knownCommandsByName.TryGetValue(parseResult.UnmatchedTokens[i], out var explicitCommand))
Microsoft.DotNet.Cli.Utils (1)
MSBuildArgs.cs (1)
121var otherMSBuildArgs = parseResult.UnmatchedTokens.ToArray();
Microsoft.TemplateEngine.Cli (1)
Commands\create\TemplateResult.cs (1)
68foreach (var unmatchedToken in parseResult.UnmatchedTokens)
System.CommandLine (4)
Completions\CompletionContext.cs (1)
82if (parseResult.UnmatchedTokens.Count > 0 ||
Invocation\ParseErrorAction.cs (1)
90var 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)
38var unmatchedTokens = parseResult.UnmatchedTokens;