From e7e290b2f46c220badff6739ea90df4f541e0b5d 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 c351fab..89e19c8 100644 --- a/bytebeat_compiler.py +++ b/bytebeat_compiler.py @@ -66,6 +66,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)