Make the _progress script a bit more robust.

This commit is contained in:
David Given
2024-09-28 12:12:58 +02:00
parent d890383ad2
commit 3b2a3c6e3a

View File

@@ -1,5 +1,5 @@
import sys
(_, current, max) = sys.argv
(_, current, max, *_) = sys.argv
percent = int(100 * float(current) / float(max))
print(f"[{percent:>3}%]")