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