Skip to content

Commit

Permalink
Fix --make-repro-path option (#90935)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpovazan authored Aug 23, 2023
1 parent 7edfbc7 commit 3ef2c80
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/coreclr/tools/Common/CommandLineHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public static void MakeReproPackage(string makeReproPath, string outputFilePath,
foreach (CliOption option in res.CommandResult.Command.Options)
{
OptionResult optionResult = res.GetResult(option);
if (optionResult is null || option.Name == "make-repro-path")
if (optionResult is null || option.Name == "--make-repro-path")
{
continue;
}
Expand All @@ -233,15 +233,15 @@ public static void MakeReproPackage(string makeReproPath, string outputFilePath,
}
foreach (string inputFile in dictionary.Values)
{
rspFile.Add($"--{option.Name}:{ConvertFromOriginalPathToReproPackagePath(input: true, inputFile)}");
rspFile.Add($"{option.Name}:{ConvertFromOriginalPathToReproPackagePath(input: true, inputFile)}");
}
}
else
{
foreach (string optInList in values)
{
if (!string.IsNullOrEmpty(optInList))
rspFile.Add($"--{option.Name}:{optInList}");
rspFile.Add($"{option.Name}:{optInList}");
}
}
}
Expand All @@ -254,11 +254,11 @@ public static void MakeReproPackage(string makeReproPath, string outputFilePath,
// if output option is used, overwrite the path to the repro package
stringVal = ConvertFromOriginalPathToReproPackagePath(input: false, stringVal);
}
rspFile.Add($"--{option.Name}:{stringVal}");
rspFile.Add($"{option.Name}:{stringVal}");
}
else
{
rspFile.Add($"--{option.Name}:{val}");
rspFile.Add($"{option.Name}:{val}");
}
}
}
Expand Down

0 comments on commit 3ef2c80

Please sign in to comment.