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