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