11 references to RootCommand
dotnet (11)
Extensions\ParseResultExtensions.cs (5)
97
parseResult.CommandResult.Command.Equals(Parser.
RootCommand
) && string.IsNullOrEmpty(parseResult.RootSubCommandResult());
102
|| (parseResult.IsTopLevelDotnetCommand() && string.IsNullOrEmpty(parseResult.GetValue(Parser.
RootCommand
.DotnetSubCommand)));
126
.SkipWhile(arg => Parser.
RootCommand
.DiagOption.Name.Equals(arg)
127
|| Parser.
RootCommand
.DiagOption.Aliases.Contains(arg)
138
_ => parseResult.GetResult(Parser.
RootCommand
.DotnetSubCommand)?.GetValueOrDefault<string>()
Parser.cs (4)
193
RootCommand
.Subcommands.FirstOrDefault(c => c.Name.Equals(commandName, StringComparison.OrdinalIgnoreCase));
252
public static ParseResult Parse(string commandLineUnsplit) =>
RootCommand
.Parse(commandLineUnsplit, ParserConfiguration);
253
public static ParseResult Parse(string[] args) =>
RootCommand
.Parse(args, ParserConfiguration);
345
if (command.Equals(
RootCommand
))
Program.cs (2)
311
string commandName = "dotnet-" + parseResult.GetValue(Parser.
RootCommand
.DotnetSubCommand);
336
if (parseResult.GetResult(Parser.
RootCommand
.DotnetSubCommand) is { Tokens: [{ Type: TokenType.Argument, Value: { } } unmatchedCommandOrFile] }