From 2650d6e67e1d47351ba9e380c0212d14ffadf416 Mon Sep 17 00:00:00 2001 From: Rima <153289003+casks-mutters@users.noreply.github.com> Date: Mon, 17 Nov 2025 04:20:50 -0500 Subject: [PATCH] Warn when max_changes is set to 0 (unlimited) only once Tiny UX improvement so users know it will run indefinitely --- slot_change_stream.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/slot_change_stream.py b/slot_change_stream.py index e7332d2..3b955e4 100644 --- a/slot_change_stream.py +++ b/slot_change_stream.py @@ -98,6 +98,8 @@ def stream(args): last_value = None last_leaf = None changes = 0 + if args.max_changes == 0 and not args.quiet: + print("ℹ️ max_changes=0 (unlimited changes; script will run until interrupted).", file=sys.stderr) if args.start is not None and args.start > tip: print(f"⚠️ start block {args.start} > tip {tip}; using tip instead."); current = tip # Start from either user-specified block or tip