Options.cs 733 B

123456789101112131415161718192021222324252627
  1. using CommandLine;
  2. using System;
  3. using System.Collections.Generic;
  4. namespace ET
  5. {
  6. public enum ServerType
  7. {
  8. Game,
  9. Watcher,
  10. }
  11. public class Options
  12. {
  13. [Option("ServerType", Required = false, Default = ServerType.Game, HelpText = "serverType enum")]
  14. public ServerType ServerType { get; set; }
  15. [Option("Process", Required = false, Default = 1)]
  16. public int Process { get; set; } = 1;
  17. [Option("Develop", Required = false, Default = 0, HelpText = "develop mode, 0正式 1开发 2压测")]
  18. public int Develop { get; set; } = 0;
  19. [Option("LogLevel", Required = false, Default = 0)]
  20. public int LogLevel { get; set; } = 2;
  21. }
  22. }