options: fix --loop=<number> off-by-one