Files
CliFx/CliFx/Attributes/CommandHelpOptionAttribute.cs
Tyrrrz a62ce71424 asd
2024-09-03 02:03:50 +03:00

20 lines
565 B
C#

namespace CliFx.Attributes;
/// <summary>
/// Binds a property to the help 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 CommandHelpOptionAttribute : CommandOptionAttribute
{
/// <summary>
/// Initializes an instance of <see cref="CommandHelpOptionAttribute" />.
/// </summary>
public CommandHelpOptionAttribute()
: base("help", 'h')
{
Description = "Show help for this command.";
}
}