Table of Contents

Class ArgumentAttributeConvention

Namespace
McMaster.Extensions.CommandLineUtils.Conventions
Assembly
McMaster.Extensions.CommandLineUtils.dll

Adds a CommandArgument for each ArgumentAttribute on the model type for CommandLineApplication<TModel>.

public class ArgumentAttributeConvention : IConvention
Inheritance
object
ArgumentAttributeConvention
Implements

Methods

Apply(ConventionContext)

Apply the convention.

public virtual void Apply(ConventionContext context)

Parameters

context ConventionContext

The context in which the convention is applied.