Class HelpOptionAttribute
- Namespace
- McMaster.Extensions.CommandLineUtils
- Assembly
- McMaster.Extensions.CommandLineUtils.dll
The option used to determine if help text should be displayed. This should only be used once per command line app.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Property)]
public sealed class HelpOptionAttribute : OptionAttributeBase
- Inheritance
-
objectAttributeHelpOptionAttribute
- Inherited Members
Constructors
HelpOptionAttribute()
Initializes a new HelpOptionAttribute with the template -?|-h|--help.
public HelpOptionAttribute()
HelpOptionAttribute(string)
Initializes a new HelpOptionAttribute.
public HelpOptionAttribute(string template)
Parameters
Properties
Template
The option template. This is parsed into the short and long name.
public string Template { get; set; }