From b8323731cb816c25d621b84fb7fe0be7fd9964ad Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Mon, 26 Aug 2024 17:38:58 +0300 Subject: [PATCH] b/c...py: notify the user when reading STDIN Notify the user when the script reads bytebeat code from STDIN --- bytebeat_compiler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bytebeat_compiler.py b/bytebeat_compiler.py index af9056a..0dbb90b 100644 --- a/bytebeat_compiler.py +++ b/bytebeat_compiler.py @@ -67,6 +67,7 @@ def rewrite_file(path: str, content: str): def read_from_file_or_stdin(path: str) -> str: if path == "-": + print("Reading from STDIN...", flush=True) return "\n".join(stdin) elif exists(path): return read_file(path)