Class VersionOptionFromMemberAttribute
- Namespace
- McMaster.Extensions.CommandLineUtils
- Assembly
- McMaster.Extensions.CommandLineUtils.dll
The option used to determine if version info should be displayed. The value for the version information is provided by the properties or members specified.
[AttributeUsage(AttributeTargets.Class)]
public sealed class VersionOptionFromMemberAttribute : OptionAttributeBase
- Inheritance
-
objectAttributeVersionOptionFromMemberAttribute
- Inherited Members
Constructors
VersionOptionFromMemberAttribute()
Initializes an instance of VersionOptionFromMemberAttribute with --version as the template.
public VersionOptionFromMemberAttribute()
VersionOptionFromMemberAttribute(string)
Initializes an instance of VersionOptionFromMemberAttribute with --version as the template.
public VersionOptionFromMemberAttribute(string template)
Parameters
templatestringThe version template.
Properties
MemberName
The name of the property or method that returns short version information.
public string? MemberName { get; set; }
Property Value
Template
The option template. This is parsed into the short and long name.
public string Template { get; set; }