Table of Contents

Class VersionOptionMetadata

Namespace
McMaster.Extensions.CommandLineUtils.SourceGeneration
Assembly
McMaster.Extensions.CommandLineUtils.dll

Metadata for the [VersionOption] attribute.

public sealed class VersionOptionMetadata
Inheritance
object
VersionOptionMetadata

Properties

Description

The description.

public string? Description { get; init; }

Property Value

string

Template

The option template.

public string? Template { get; init; }

Property Value

string

Version

The version string, or null if version is provided by a member.

public string? Version { get; init; }

Property Value

string

VersionGetter

Delegate to get the version from a member, if applicable.

public Func<object, string?>? VersionGetter { get; init; }

Property Value

Func<object, string>