Table of Contents

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
object
Attribute
VersionOptionAttribute
Inherited Members

Constructors

VersionOptionAttribute(string)

Initializes a new VersionOptionAttribute with the template --version.

public VersionOptionAttribute(string version)

Parameters

version string

The version

VersionOptionAttribute(string, string)

Initializes a new VersionOptionAttribute.

public VersionOptionAttribute(string template, string version)

Parameters

template string

The string template that will be parsed into ShortName and LongName.

version string

The version

Properties

Template

The option template. This is parsed into the short and long name.

public string Template { get; set; }

Property Value

string

Version

The version information to be shown. ShortVersionGetter.

public string Version { get; set; }

Property Value

string