12 references to Command
dotnet-aot (4)
parent\dotnet\Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (2)
32var (builtInOptions, nonBuiltInOptions) = GetAllOptions(context.Command.Options); 53context.Output.WriteLine(Indent + string.Join(" ", GetCustomUsageParts(context.Command)));
parent\dotnet\Parser.cs (2)
438foreach (Option option in context.Command.Options) 458var command = context.Command;
Microsoft.DotNet.Cli.Definitions (8)
Help\HelpBuilder.cs (3)
236? $"[{GetArgumentDefaultValue(context.Command, argument, true, context)}]" 454var subcommands = context.Command.Subcommands.Where(x => !x.Hidden).Select(x => GetTwoColumnRow(x, context)).ToArray(); 466if (!context.Command.TreatUnmatchedTokensAsErrors)
Help\HelpBuilder.Default.cs (5)
119ctx.HelpBuilder.WriteHeading(LocalizationResources.HelpDescriptionTitle(), ctx.Command.Description, ctx.Output); 129ctx.HelpBuilder.WriteHeading(LocalizationResources.HelpUsageTitle(), ctx.HelpBuilder.GetUsage(ctx.Command), ctx.Output); 139TwoColumnHelpRow[] commandArguments = ctx.HelpBuilder.GetCommandArgumentRows(ctx.Command, ctx).ToArray(); 165foreach (Option option in ctx.Command.Options) 177Command? current = ctx.Command;