diff --git a/docs/start_up.md b/docs/start_up.md index 0e17a3f..8284439 100644 --- a/docs/start_up.md +++ b/docs/start_up.md @@ -72,7 +72,9 @@ - --output_code_dir 参数为生成的代码文件存放的路径。 建议建议指向 unity的 Assets 目录下的某级子目录 - --output_data_dir 参数为生成的数据文件的存放路径。 -详细的命令文档请看 [install_manual](./luban_install_manual.md)。 +注意,如果你直接使用 Csharp_unity_json中的gen_code_json.bat脚本,并且使用Luban.ClientServer,一定要记得 =====**删除 -h %LUBAN_SERVER_IP% 参数** =====。因为添加-h 参数情况下,会使用云生成而不是本地生成!!! + +详细的命令文档请看 [luban_command_tools](./luban_command_tools.md)。 如果一切正常,会产生一系列日志,最终一行是 == succ == 。 diff --git a/src/Luban.Client/.editorconfig b/src/Luban.Client/.editorconfig deleted file mode 100644 index b5aa556..0000000 --- a/src/Luban.Client/.editorconfig +++ /dev/null @@ -1,13 +0,0 @@ -[*.cs] - -# CA1303: 请不要将文本作为本地化参数传递 -dotnet_diagnostic.CA1303.severity = none - -# CA1305: 指定 IFormatProvider -dotnet_diagnostic.CA1305.severity = none - -# CA1307: 指定 StringComparison -dotnet_diagnostic.CA1307.severity = none - -# CA1031: 不捕获常规异常类型 -dotnet_diagnostic.CA1031.severity = none diff --git a/src/Luban.ClientServer/Program.cs b/src/Luban.ClientServer/Program.cs index 5c60058..6f3a47d 100644 --- a/src/Luban.ClientServer/Program.cs +++ b/src/Luban.ClientServer/Program.cs @@ -80,12 +80,14 @@ Options: // 打个补丁。好多人忘了设置 LUBAN_SERVER_IP 环境变量,导致启动时出问题 if (args[i + 1].StartsWith("-")) { - Console.WriteLine("[WARN] --host (or -h) argument is missing, use 127.0.0.1 as default. do you forget to set LUBAN_SERVER_IP env variable?"); - ops.Host = "127.0.0.1"; + //Console.WriteLine("[WARN] --host (or -h) 参数丢失, use 127.0.0.1 as default. do you forget to set LUBAN_SERVER_IP env variable?"); + //ops.Host = "127.0.0.1"; + Console.WriteLine("[WARN] 对于Luban.ClientServer,参数 {0} 没有意义,忽略。", arg); } else { - ops.Host = args[++i]; + string argv = args[++i]; + Console.WriteLine("[WARN] 对于Luban.ClientServer,参数 {0} {1} 没有意义,忽略。", arg, argv); } break; }