diff --git a/.vscode/launch.json b/.vscode/launch.json index 0fb46880..eb43980f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -11,7 +11,7 @@ "preLaunchTask": "build", // If you have changed target frameworks, make sure to update the program path. "program": "${workspaceFolder}/src/ImeWlConverterCmd/bin/Debug/netcoreapp3.0/ImeWlConverterCmd.dll", - "args": ["-?"], + "args": ["-h"], "cwd": "${workspaceFolder}/src/ImeWlConverterCmd", // For more information about the 'console' field, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window "console": "internalConsole", diff --git a/Dockerfile b/Dockerfile index 46afc97d..c3d048d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,4 +34,4 @@ RUN set -ex \ ENTRYPOINT ["ImeWlConverterCmd"] -CMD ["-?"] +CMD ["-h"] diff --git a/README.md b/README.md index dab204f3..be0e2db6 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ -本程序支持批量转换(一次拖拽多个词库文件,或者按住 Ctrl 选择多个文件),支持命令行模式(在命令行下使用-?命令查看帮助),支持 Windows、Linux、MacOS。 +本程序支持批量转换(一次拖拽多个词库文件,或者按住 Ctrl 选择多个文件),支持命令行模式(在命令行下使用-h命令查看帮助),支持 Windows、Linux、MacOS。 ### 支持列表 diff --git a/src/ImeWlConverterCore/ConsoleRun.cs b/src/ImeWlConverterCore/ConsoleRun.cs index a716544d..5cd866ba 100644 --- a/src/ImeWlConverterCore/ConsoleRun.cs +++ b/src/ImeWlConverterCore/ConsoleRun.cs @@ -70,7 +70,7 @@ public void Run() { if (Args.Length == 0) { - Console.WriteLine("输入 -? 可获取帮助"); + Console.WriteLine("输入 -h 可获取帮助"); return; } for (int i = 0; i < Args.Length; i++) @@ -143,7 +143,7 @@ public void Run() } Console.WriteLine("转换完成,共转换" + mainBody.Count + "个"); } - Console.WriteLine("输入 -? 可获取帮助"); + Console.WriteLine("输入 -h 可获取帮助"); } private void MainBody_ProcessNotice(string message) @@ -153,7 +153,7 @@ private void MainBody_ProcessNotice(string message) private CommandType RunCommand(string command) { - if (command == "--help" || command == "-?") + if (command == "--help" || command == "-h") { showHelp(this.cbxImportItems); return CommandType.Help;