mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 00:42:51 +08:00
22 lines
688 B
C#
22 lines
688 B
C#
namespace Spectre.Console.Tests.Data;
|
|
|
|
public class LionSettings : CatSettings
|
|
{
|
|
[CommandArgument(0, "<TEETH>")]
|
|
[Description("The number of teeth the lion has.")]
|
|
public int Teeth { get; set; }
|
|
|
|
[CommandOption("-c <CHILDREN>")]
|
|
[Description("The number of children the lion has.")]
|
|
public int Children { get; set; }
|
|
|
|
[CommandOption("-d <DAY>")]
|
|
[Description("The days the lion goes hunting.")]
|
|
[DefaultValue(new[] { DayOfWeek.Monday, DayOfWeek.Thursday })]
|
|
public DayOfWeek[] HuntDays { get; set; }
|
|
|
|
[CommandOption("-w|--weight [WEIGHT]")]
|
|
[Description("The weight of the lion, in kgs.")]
|
|
public FlagValue<int?> Weight { get; set; }
|
|
}
|