Table of Contents

Class OptionAttributeConvention

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

Adds an CommandOption to match each usage of OptionAttribute on the model type of CommandLineApplication<TModel>.

public class OptionAttributeConvention : OptionAttributeConventionBase<OptionAttribute>, IConvention
Inheritance
object
OptionAttributeConvention
Implements

Methods

Apply(ConventionContext)

Apply the convention.

public virtual void Apply(ConventionContext context)

Parameters

context ConventionContext

The context in which the convention is applied.