Class DefaultHelpOptionConvention
- Namespace
- McMaster.Extensions.CommandLineUtils.Conventions
- Assembly
- McMaster.Extensions.CommandLineUtils.dll
Adds a help option of --help if no other help option is specified.
public class DefaultHelpOptionConvention : IConvention
- Inheritance
-
objectDefaultHelpOptionConvention
- Implements
Constructors
DefaultHelpOptionConvention(string)
Initializes an instance of DefaultHelpOptionConvention.
public DefaultHelpOptionConvention(string template)
Parameters
templatestring
Fields
DefaultHelpTemplate
The default help template.
public const string DefaultHelpTemplate = "-?|-h|--help"
Field Value
Methods
Apply(ConventionContext)
Apply the convention.
public void Apply(ConventionContext context)
Parameters
contextConventionContextThe context in which the convention is applied.