mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
20 lines
573 B
C#
20 lines
573 B
C#
namespace CliFx.Attributes;
|
|
|
|
/// <summary>
|
|
/// Binds a property to the version option of a command.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This attribute is applied automatically by the framework and should not need to be used explicitly.
|
|
/// </remarks>
|
|
public class CommandVersionOptionAttribute : CommandOptionAttribute
|
|
{
|
|
/// <summary>
|
|
/// Initializes an instance of <see cref="CommandVersionOptionAttribute" />.
|
|
/// </summary>
|
|
public CommandVersionOptionAttribute()
|
|
: base("version")
|
|
{
|
|
Description = "Show application version.";
|
|
}
|
|
}
|