Skip to content

Commit a510cd8

Browse files
committed
Remove change that came in from main unexpectedly
1 parent b79b9fe commit a510cd8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Cli/dotnet/Commands/Run/RunCommand.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -549,12 +549,6 @@ public static RunCommand FromParseResult(ParseResult parseResult)
549549
.Any(static t => t is { Type: TokenType.Argument, Value: "-" });
550550

551551
string? projectOption = parseResult.GetValue(RunCommandParser.ProjectOption);
552-
string? fileOption = parseResult.GetValue(RunCommandParser.FileOption);
553-
554-
if (projectOption != null && fileOption != null)
555-
{
556-
throw new GracefulException(CliCommandStrings.CannotCombineOptions, RunCommandParser.ProjectOption.Name, RunCommandParser.FileOption.Name);
557-
}
558552

559553
string[] args = [.. nonBinLogArgs];
560554
string? projectFilePath = DiscoverProjectFilePath(projectOption, readCodeFromStdin, ref args, out string? entryPointFilePath);

0 commit comments

Comments
 (0)