1 write to Command
System.CommandLine (1)
Help\HelpContext.cs (1)
22Command = command ?? throw new ArgumentNullException(nameof(command));
10 references to Command
System.CommandLine (10)
Help\HelpBuilder.cs (5)
46if (context.Command.Hidden) 177var subcommands = context.Command.Subcommands.Where(x => !x.Hidden).Select(x => GetTwoColumnRow(x, context)).ToArray(); 189if (!context.Command.TreatUnmatchedTokensAsErrors) 458!string.IsNullOrEmpty(GetArgumentDefaultValue(context.Command, argument, true, context)) 459? $"[{GetArgumentDefaultValue(context.Command, argument, true, context)}]"
Help\HelpBuilder.Default.cs (5)
188ctx.HelpBuilder.WriteHeading(LocalizationResources.HelpDescriptionTitle(), ctx.Command.Description, ctx.Output); 198ctx.HelpBuilder.WriteHeading(LocalizationResources.HelpUsageTitle(), ctx.HelpBuilder.GetUsage(ctx.Command), ctx.Output); 208TwoColumnHelpRow[] commandArguments = ctx.HelpBuilder.GetCommandArgumentRows(ctx.Command, ctx).ToArray(); 234foreach (Option option in ctx.Command.Options.OrderBy(o => o is HelpOption or VersionOption)) 247Command? current = ctx.Command;