Table of Contents

Class VersionOptionAttributeConvention

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

Sets OptionVersion using settings from VersionOptionAttribute on the model type of CommandLineApplication<TModel>.

public class VersionOptionAttributeConvention : OptionAttributeConventionBase<VersionOptionAttribute>, IConvention
Inheritance
object
VersionOptionAttributeConvention
Implements

Methods

Apply(ConventionContext)

Apply the convention.

public virtual void Apply(ConventionContext context)

Parameters

context ConventionContext

The context in which the convention is applied.