Skip to content

Commit c8d63c1

Browse files
authored
fix(prqlc): Slightly better prompt (PRQL#2603)
1 parent 8b24303 commit c8d63c1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

prql-compiler/prqlc/src/cli.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,10 @@ impl Command {
292292
// it's confusing whether it's waiting for input or not. This
293293
// offers the prompt.
294294
if input.is_stdin() && atty::is(atty::Stream::Stdin) {
295-
println!("# Enter PRQL, then press ctrl-d or ctrl-z (windows) to compile:\n");
295+
#[cfg(unix)]
296+
eprintln!("Enter PRQL, then press ctrl-d to compile:\n");
297+
#[cfg(windows)]
298+
eprintln!("Enter PRQL, then press ctrl-z to compile:\n");
296299
}
297300

298301
let file_tree = input.read_to_tree()?;

0 commit comments

Comments
 (0)