using Spectre.Console.Cli; namespace YourSolution.AdmServer.Host; /// /// 命令行参数 /// public sealed class CommandLineArgs : CommandSettings { /// /// 插入种子数据 /// [CommandOption("-i|--insert-seed-data")] public bool InsertSeedData { get; init; } /// /// 同步数据库结构 /// [CommandOption("-s|--sync-structure")] public bool SyncStructure { get; init; } }