We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 216f7f7 commit 2937876Copy full SHA for 2937876
1 file changed
src/MediaConverters/MediaConverters.Tool/Program.cs
@@ -20,9 +20,15 @@ class Program
20
{
21
static async Task<int> Main(string[] args)
22
23
- if (args.Length == 0)
+ if (args.Length == 0 || args.Length == 1)
24
25
// 调试模式
26
+ var inputFile = "image.wmf";
27
+ if (args.Length == 1)
28
+ {
29
+ inputFile = args[0];
30
+ }
31
+
32
var imageConvertContext = new ImageConvertContext()
33
34
MaxImageWidth = 1000,
@@ -38,7 +44,7 @@ static async Task<int> Main(string[] args)
38
44
39
45
return await RunAsync(new Options()
40
46
41
- InputFile = "image.wmf",
47
+ InputFile = inputFile,
42
48
ConvertConfigurationFile = configurationFile,
43
49
WorkingFolder = testFolder.FullName,
50
OutputFile = outputFile,
0 commit comments