Table of Contents

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
object
CommandAttributeConvention
Implements

Methods

Apply(ConventionContext)

Apply the convention.

public virtual void Apply(ConventionContext context)

Parameters

context ConventionContext

The context in which the convention is applied.

See Also