Class CommandAttributeConvention
- Namespace
- McMaster.Extensions.CommandLineUtils.Conventions
- Assembly
- McMaster.Extensions.CommandLineUtils.dll
Adds settings from CommandAttribute and System.ComponentModel.DataAnnotations.ValidationAttribute set on the model type for CommandLineApplication<TModel>.
public class CommandAttributeConvention : IConvention
- Inheritance
-
objectCommandAttributeConvention
- Implements
Methods
Apply(ConventionContext)
Apply the convention.
public virtual void Apply(ConventionContext context)
Parameters
contextConventionContextThe context in which the convention is applied.