Class VersionOptionAttribute
- Namespace
- McMaster.Extensions.CommandLineUtils
- Assembly
- McMaster.Extensions.CommandLineUtils.dll
The option used to determine if version text should be displayed.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Property)]
public sealed class VersionOptionAttribute : OptionAttributeBase
- Inheritance
-
objectAttributeVersionOptionAttribute
- Inherited Members
Constructors
VersionOptionAttribute(string)
Initializes a new VersionOptionAttribute with the template --version.
public VersionOptionAttribute(string version)
Parameters
versionstringThe version
VersionOptionAttribute(string, string)
Initializes a new VersionOptionAttribute.
public VersionOptionAttribute(string template, string version)
Parameters
templatestringThe string template that will be parsed into ShortName and LongName.
versionstringThe version
Properties
Template
The option template. This is parsed into the short and long name.
public string Template { get; set; }
Property Value
Version
The version information to be shown. ShortVersionGetter.
public string Version { get; set; }