Skip to content

Commit af6cd04

Browse files
committed
perf: 命令帮助参数 -? 改为 -h
1 parent a2f8efe commit af6cd04

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"preLaunchTask": "build",
1212
// If you have changed target frameworks, make sure to update the program path.
1313
"program": "${workspaceFolder}/src/ImeWlConverterCmd/bin/Debug/netcoreapp3.0/ImeWlConverterCmd.dll",
14-
"args": ["-?"],
14+
"args": ["-h"],
1515
"cwd": "${workspaceFolder}/src/ImeWlConverterCmd",
1616
// For more information about the 'console' field, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window
1717
"console": "internalConsole",

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ RUN set -ex \
3434

3535
ENTRYPOINT ["ImeWlConverterCmd"]
3636

37-
CMD ["-?"]
37+
CMD ["-h"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
</div>
1818

19-
本程序支持批量转换(一次拖拽多个词库文件,或者按住 Ctrl 选择多个文件),支持命令行模式(在命令行下使用-?命令查看帮助),支持 Windows、Linux、MacOS。
19+
本程序支持批量转换(一次拖拽多个词库文件,或者按住 Ctrl 选择多个文件),支持命令行模式(在命令行下使用-h命令查看帮助),支持 Windows、Linux、MacOS。
2020

2121
### 支持列表
2222

src/ImeWlConverterCore/ConsoleRun.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void Run()
7070
{
7171
if (Args.Length == 0)
7272
{
73-
Console.WriteLine("输入 -? 可获取帮助");
73+
Console.WriteLine("输入 -h 可获取帮助");
7474
return;
7575
}
7676
for (int i = 0; i < Args.Length; i++)
@@ -143,7 +143,7 @@ public void Run()
143143
}
144144
Console.WriteLine("转换完成,共转换" + mainBody.Count + "个");
145145
}
146-
Console.WriteLine("输入 -? 可获取帮助");
146+
Console.WriteLine("输入 -h 可获取帮助");
147147
}
148148

149149
private void MainBody_ProcessNotice(string message)
@@ -153,7 +153,7 @@ private void MainBody_ProcessNotice(string message)
153153

154154
private CommandType RunCommand(string command)
155155
{
156-
if (command == "--help" || command == "-?")
156+
if (command == "--help" || command == "-h")
157157
{
158158
showHelp(this.cbxImportItems);
159159
return CommandType.Help;

0 commit comments

Comments
 (0)