mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 17:02:51 +08:00
12 lines
348 B
C#
12 lines
348 B
C#
namespace Spectre.Console.Tests.Data;
|
|
|
|
public class CatSettings : MammalSettings
|
|
{
|
|
[CommandOption("--agility <VALUE>")]
|
|
[TypeConverter(typeof(CatAgilityConverter))]
|
|
[DefaultValue(10)]
|
|
[Description("The agility between 0 and 100.")]
|
|
[PositiveNumberValidator("Agility cannot be negative.")]
|
|
public int Agility { get; set; }
|
|
}
|