scripts: plot.py: Reorganized main -> main_ to isolate -k/--keep-open logic

This simplifies plot.py's -k/--keep-open logic into a self-contained
loop that just calls main_ on an update.

This is a compromise on getting rid of -k/--keep-open completely, since
we _could_ just rely on watch.py. But plot.py knowing which argument is
the file to watch is convenient.

The eventual plan is to adopt this small bit of copy-pastable-code in
the other ascii-art scripts (treemap.py, dbgbmap.py, etc).
This commit is contained in:
Christopher Haster
2025-03-14 18:47:21 -05:00
parent 9b03933f2d
commit 59703f3b16

File diff suppressed because it is too large Load Diff