using CommandLine; namespace NadekoBot.Core.Modules.Gambling.Common.AnimalRacing { public class RaceOptions { [Option('s', "start-time", Default = 20, Required = false)] public int StartTime { get; set; } = 20; public void NormalizeOptions() { if (this.StartTime < 10 || this.StartTime > 120) this.StartTime = 20; } } }