9 references to ForwardIfEnabled
Microsoft.DotNet.Cli.CommandLine (2)
ForwardedOptionExtensions.cs (2)
188/// <inheritdoc cref="ForwardIfEnabled(Option{bool}, string)"/> 189public Option<bool> ForwardAs(string value) => option.ForwardIfEnabled(value);
Microsoft.DotNet.Cli.Definitions (7)
Commands\Package\PackageAddCommandDefinition.cs (1)
57public static Option<bool> CreateInteractiveOption() => CommonOptions.CreateInteractiveOption().ForwardIfEnabled("--interactive");
Commands\Package\PackageListCommandDefinition.cs (1)
81public readonly Option<bool> InteractiveOption = CommonOptions.CreateInteractiveOption().ForwardIfEnabled("--interactive");
Commands\Package\PackageRemoveCommandDefinition.cs (1)
32public readonly Option<bool> InteractiveOption = CommonOptions.CreateInteractiveOption().ForwardIfEnabled("--interactive");
Commands\Package\PackageSearchCommandDefinition.cs (1)
45public readonly Option<bool> Interactive = CommonOptions.CreateInteractiveOption().ForwardIfEnabled("--interactive");
Commands\Test\TestCommandDefinition.VSTest.cs (2)
97}.ForwardIfEnabled("-property:VSTestBlame=true"); 103}.ForwardIfEnabled("-property:VSTestBlameCrash=true");
Common\CommonOptions.cs (1)
362return forwardAs is null ? option : option.ForwardIfEnabled(forwardAs);