58 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)
128var capturedArguments = parseResult.UnmatchedTokens.ToArray(); 317var unrecognizedCommandOptions = GroupUnrecognizedCommandOptions(parseResult.UnmatchedTokens); 349foreach (var unmatchedToken in parseResult.UnmatchedTokens)
Commands\RunCommand.cs (2)
337UnmatchedTokens = parseResult.UnmatchedTokens.ToArray(), 1380var appHostArgs = parseResult.UnmatchedTokens;
Commands\StartCommand.cs (1)
62var appHostArgs = parseResult.UnmatchedTokens;
Aspire.Cli.Tests (21)
Commands\BaseCommandTests.cs (1)
601Assert.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)
70Assert.Empty(result.UnmatchedTokens); 3719Assert.Contains("--custom-arg", result.UnmatchedTokens); 3720Assert.Contains("value", result.UnmatchedTokens); 3721Assert.Contains("--launch-profile", result.UnmatchedTokens); 3722Assert.Contains("E2E", result.UnmatchedTokens); 4485Assert.Equal(["--secret", "value"], childParseResult.UnmatchedTokens); 4791Assert.Equal(expectedAppHostArguments, childParseResult.UnmatchedTokens);
Commands\StartCommandTests.cs (6)
118Assert.Empty(result.UnmatchedTokens); 203Assert.Contains("--custom-arg", result.UnmatchedTokens); 204Assert.Contains("value", result.UnmatchedTokens); 205Assert.Contains("--launch-profile", result.UnmatchedTokens); 206Assert.Contains("E2E", result.UnmatchedTokens); 704Assert.Equal(expectedAppHostArguments, childParseResult.UnmatchedTokens);
Projects\DotNetAppHostProjectTests.cs (2)
1127Assert.Empty(parseResult.UnmatchedTokens); 1148UnmatchedTokens = parseResult.UnmatchedTokens.ToArray(),
dotnet (10)
Commands\Hidden\Parse\ParseCommand.cs (2)
22if (reparsed.UnmatchedTokens.Any()) 25Console.WriteLine(string.Join(" ", reparsed.UnmatchedTokens));
Commands\Test\MTP\TestCommandOptions.cs (1)
21ImmutableArray<string> unmatchedTokens = [.. parseResult.UnmatchedTokens];
Commands\Test\VSTest\TestCommand.cs (7)
205? result.UnmatchedTokens.TakeWhile(x => x != settings[1]) 206: result.UnmatchedTokens; 326for (int i = 0; i < parseResult.UnmatchedTokens.Count - settingsLength; i++) 328string arg = parseResult.UnmatchedTokens[i]; 343IEnumerable<string> globalPropEnumerable = parseResult.UnmatchedTokens; 377if (!TryFromCommandLine(parseResult.UnmatchedTokens, out terminalLoggerArg) && !TryFromEnvironmentVariables(out terminalLoggerArg)) 379terminalLoggerArg = FindDefaultValue(parseResult.UnmatchedTokens) ?? "auto";
dotnet-aot (2)
src\sdk\src\Cli\dotnet\Commands\Test\AotTestCommand.cs (1)
51string[] unmatchedTokens = [.. parseResult.UnmatchedTokens];
src\sdk\src\Cli\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)
262var unmatchedTokensBeforeDashDash = parseResult.UnmatchedTokens.Count - (dashDashIndex >= 0 ? parseResult.Tokens.Count - dashDashIndex - 1 : 0); 271for (int i = 0; i < parseResult.UnmatchedTokens.Count; i++) 273var token = parseResult.UnmatchedTokens[i]; 335var unmatchedTokensBeforeDashDash = parseResult.UnmatchedTokens.Count - (dashDashIndex >= 0 ? parseResult.Tokens.Count - dashDashIndex - 1 : 0); 343if (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;