Skip to content

Commit 3ef2c80

Browse files
authored
Fix --make-repro-path option (#90935)
1 parent 7edfbc7 commit 3ef2c80

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/coreclr/tools/Common/CommandLineHelpers.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public static void MakeReproPackage(string makeReproPath, string outputFilePath,
210210
foreach (CliOption option in res.CommandResult.Command.Options)
211211
{
212212
OptionResult optionResult = res.GetResult(option);
213-
if (optionResult is null || option.Name == "make-repro-path")
213+
if (optionResult is null || option.Name == "--make-repro-path")
214214
{
215215
continue;
216216
}
@@ -233,15 +233,15 @@ public static void MakeReproPackage(string makeReproPath, string outputFilePath,
233233
}
234234
foreach (string inputFile in dictionary.Values)
235235
{
236-
rspFile.Add($"--{option.Name}:{ConvertFromOriginalPathToReproPackagePath(input: true, inputFile)}");
236+
rspFile.Add($"{option.Name}:{ConvertFromOriginalPathToReproPackagePath(input: true, inputFile)}");
237237
}
238238
}
239239
else
240240
{
241241
foreach (string optInList in values)
242242
{
243243
if (!string.IsNullOrEmpty(optInList))
244-
rspFile.Add($"--{option.Name}:{optInList}");
244+
rspFile.Add($"{option.Name}:{optInList}");
245245
}
246246
}
247247
}
@@ -254,11 +254,11 @@ public static void MakeReproPackage(string makeReproPath, string outputFilePath,
254254
// if output option is used, overwrite the path to the repro package
255255
stringVal = ConvertFromOriginalPathToReproPackagePath(input: false, stringVal);
256256
}
257-
rspFile.Add($"--{option.Name}:{stringVal}");
257+
rspFile.Add($"{option.Name}:{stringVal}");
258258
}
259259
else
260260
{
261-
rspFile.Add($"--{option.Name}:{val}");
261+
rspFile.Add($"{option.Name}:{val}");
262262
}
263263
}
264264
}

0 commit comments

Comments
 (0)