1- using CommandLine ;
1+ using GameFrameX . Foundation . Options . Attributes ;
22
33namespace GameFrameX . ProtoExport ;
44
55public sealed class LauncherOptions
66{
7- [ Option ( "inputPath" , Required = true , HelpText = "协议文件路径" ) ]
7+ /// <summary>
8+ /// 协议文件路径
9+ /// </summary>
10+ [ Option ( "inputPath" , Required = true , Description = "协议文件路径" ) ]
811 public string InputPath { get ; set ; }
912
10- [ Option ( "mode" , Required = true , HelpText = "运行模式" ) ]
13+ /// <summary>
14+ /// 运行模式
15+ /// </summary>
16+ [ Option ( "mode" , Required = true , Description = "运行模式" ) ]
1117 public string Mode { get ; set ; }
1218
13- [ Option ( "outputPath" , Required = true , HelpText = "文件路径" ) ]
19+ /// <summary>
20+ /// 文件路径
21+ /// </summary>
22+ [ Option ( "outputPath" , Required = true , Description = "文件路径" ) ]
1423 public string OutputPath { get ; set ; }
1524
16- [ Option ( "namespaceName" , Required = true , HelpText = "命名空间" ) ]
25+ /// <summary>
26+ /// 命名空间
27+ /// </summary>
28+ [ Option ( "namespaceName" , Required = true , Description = "命名空间" ) ]
1729 public string NamespaceName { get ; set ; }
1830
19- [ Option ( "isGenerateErrorCode" , Required = false , Default = true , HelpText = "是否生成错误码" ) ]
31+ /// <summary>
32+ /// 是否生成错误码
33+ /// </summary>
34+ [ Option ( "isGenerateErrorCode" , Required = false , DefaultValue = true , Description = "是否生成错误码" ) ]
2035 public bool IsGenerateErrorCode { get ; set ; }
36+
37+ /// <summary>
38+ /// 是否生成错误码Excel文件
39+ /// </summary>
40+ [ Option ( "isGenerateErrorCodeExcelFile" , Required = false , DefaultValue = true , Description = "是否生成错误码Excel文件" ) ]
41+ public bool IsGenerateErrorCodeExcelFile { get ; set ; }
42+
43+ /// <summary>
44+ /// 错误码Excel文件路径
45+ /// </summary>
46+ [ Option ( "errorCodeExcelFilePath" , Required = false , Description = "错误码Excel文件路径" ) ]
47+ public string ErrorCodeExcelFilePath { get ; set ; }
2148}
0 commit comments