Skip to content

Commit 4276db3

Browse files
committed
明确使用 PowerShell 风格
1 parent 2361f25 commit 4276db3

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/MediaConverters/MediaConverters.Tool/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static async Task<int> Main(string[] args)
5555
});
5656
}
5757

58-
return await DotNetCampus.Cli.CommandLine.Parse(args)
58+
return await DotNetCampus.Cli.CommandLine.Parse(args, CommandLineParsingOptions.PowerShell)
5959
.AddHandler<ConvertHandler>()
6060
.AddHandler<IpcHandler>()
6161
.RunAsync()

src/MediaConverters/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Verb: `convert`
99
Command line parameters:
1010

1111
```shell
12-
--WorkingFolder: Working directory
13-
--InputFile: Path to the input file
14-
--OutputFile: Path to the output file
15-
--ConvertConfigurationFile: Path to the conversion configuration file
12+
-WorkingFolder: Working directory
13+
-InputFile: Path to the input file
14+
-OutputFile: Path to the output file
15+
-ConvertConfigurationFile: Path to the conversion configuration file
1616
```
1717

18-
The `--ConvertConfigurationFile` parameter specifies a JSON-format configuration file, which contains the settings for the conversion tasks. The configuration follows the structure of a serialized `ImageConvertContext` object, defined as follows:
18+
The `-ConvertConfigurationFile` parameter specifies a JSON-format configuration file, which contains the settings for the conversion tasks. The configuration follows the structure of a serialized `ImageConvertContext` object, defined as follows:
1919

2020
- **MaxImageWidth**: Maximum image width limit. Optional; if omitted or empty, no limit is applied.
2121
- **MaxImageHeight**: Maximum image height limit. Optional; if omitted or empty, no limit is applied.

src/MediaConverters/README.zh-CN.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Verb: `convert`
99
命令行参数:
1010

1111
```shell
12-
--WorkingFolder: 工作目录
13-
--InputFile: 输入文件路径
14-
--OutputFile: 输出文件路径
15-
--ConvertConfigurationFile: 转换配置文件路径
12+
-WorkingFolder: 工作目录
13+
-InputFile: 输入文件路径
14+
-OutputFile: 输出文件路径
15+
-ConvertConfigurationFile: 转换配置文件路径
1616
```
1717

18-
其中 `--ConvertConfigurationFile` 转换配置文件是一个 Json 格式的文件,里面包含转换的任务的配置内容。配置内容格式为 ImageConvertContext 类型的序列化内容,具体定义如下:
18+
其中 `-ConvertConfigurationFile` 转换配置文件是一个 Json 格式的文件,里面包含转换的任务的配置内容。配置内容格式为 ImageConvertContext 类型的序列化内容,具体定义如下:
1919

2020
- MaxImageWidth: 最大图片宽度限制。可不填或为空,表示不限制
2121
- MaxImageHeight: 最大图片高度限制。可不填或为空,表示不限制

0 commit comments

Comments
 (0)