Skip to content

Commit

Permalink
fix repl
Browse files Browse the repository at this point in the history
  • Loading branch information
yoav-lavi committed Apr 11, 2022
1 parent c8319cb commit 81b1586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/melody_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ fn argument_env_validation(start_repl: bool, input_file_path: &str) -> anyhow::R
if streams.any_pipe() && start_repl {
return Err(CliError::ReplWithPipe.into());
}
if !streams.stdin && input_file_path == STDIN_MARKER {
if !streams.stdin && !start_repl && input_file_path == STDIN_MARKER {
return Err(CliError::StdinWithoutPipe.into());
}

Expand Down

0 comments on commit 81b1586

Please sign in to comment.