Class SubcommandPropertyConvention
- Namespace
- McMaster.Extensions.CommandLineUtils.Conventions
- Assembly
- McMaster.Extensions.CommandLineUtils.dll
Sets a property named Subcommand to the value of the selected subcommand
model type of CommandLineApplication<TModel>.
public class SubcommandPropertyConvention : IConvention
- Inheritance
-
objectSubcommandPropertyConvention
- Implements
Methods
Apply(ConventionContext)
Apply the convention.
public virtual void Apply(ConventionContext context)
Parameters
contextConventionContextThe context in which the convention is applied.