33 references to UnmatchedTokens
aspire (7)
Commands\ExecCommand.cs (2)
96if (parseResult.UnmatchedTokens.Count == 0) 305var allTokens = parseResult.UnmatchedTokens.ToList();
Commands\PipelineCommandBase.cs (2)
146var commandArgs = GetCommandArgs(parseResult).Concat(parseResult.UnmatchedTokens).ToArray(); 198var unmatchedTokens = parseResult.UnmatchedTokens.ToArray();
Commands\RunCommand.cs (2)
226UnmatchedTokens = parseResult.UnmatchedTokens.ToArray(), 621var additionalArgs = parseResult.UnmatchedTokens.Where(t => t != "--detach").ToList();
Commands\StartCommand.cs (1)
54var additionalArgs = parseResult.UnmatchedTokens.ToList();
Aspire.Cli.Tests (4)
Commands\RunCommandTests.cs (2)
1481Assert.Contains("--custom-arg", result.UnmatchedTokens); 1482Assert.Contains("value", result.UnmatchedTokens);
Commands\StartCommandTests.cs (2)
81Assert.Contains("--custom-arg", result.UnmatchedTokens); 82Assert.Contains("value", result.UnmatchedTokens);
dotnet (10)
Commands\Hidden\Parse\ParseCommand.cs (2)
22if (reparsed.UnmatchedTokens.Any()) 25Console.WriteLine(string.Join(" ", reparsed.UnmatchedTokens));
Commands\Test\MTP\MSBuildUtility.cs (1)
104LoggerUtility.SeparateBinLogArguments(parseResult.UnmatchedTokens, out var binLogArgs, out var otherArgs);
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-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;