2 overrides of Action
System.CommandLine (2)
Help\HelpOption.cs (1)
41
public override CommandLineAction?
Action
VersionOption.cs (1)
43
public override CommandLineAction?
Action
6 writes to Action
dotnet (6)
Commands\Workload\WorkloadCommandParser.cs (2)
29
def.InfoOption.
Action
= new ShowWorkloadsInfoAction();
30
def.VersionOption.
Action
= new ShowWorkloadsVersionOption();
Parser.cs (4)
163
rootCommand.DiagOption.
Action
= new HandleDiagnosticAction(rootCommand.DiagOption);
164
rootCommand.VersionOption.
Action
= new PrintVersionAction(rootCommand.VersionOption);
165
rootCommand.InfoOption.
Action
= new PrintInfoAction(rootCommand.InfoOption);
166
rootCommand.CliSchemaOption.
Action
= new PrintCliSchemaAction(rootCommand.CliSchemaOption);
6 references to Action
System.CommandLine (6)
Parsing\ParseOperation.cs (6)
217
if (option.
Action
is not null)
222
if (option.
Action
.Terminating)
224
_primaryAction = option.
Action
;
228
AddPreAction(option.
Action
);
386
if (kvp is { Key: Option {
Action
: { Terminating: false } action }, Value: OptionResult { Implicit: true } } &&
450
if (symbol is Option {
Action
: { } optionAction } option)