16 lines
369 B
C#
16 lines
369 B
C#
|
#nullable disable
|
||
|
using CommandLine;
|
||
|
|
||
|
namespace Ellie.Modules.Gambling.Common.AnimalRacing;
|
||
|
|
||
|
public class RaceOptions : IEllieCommandOptions
|
||
|
{
|
||
|
[Option('s', "start-time", Default = 20, Required = false)]
|
||
|
public int StartTime { get; set; } = 20;
|
||
|
|
||
|
public void NormalizeOptions()
|
||
|
{
|
||
|
if (StartTime is < 10 or > 120)
|
||
|
StartTime = 20;
|
||
|
}
|
||
|
}
|