game leaderboards: add cli flag
game leaderboards: add cli flag: a task in smol-software-harbor (Harbor dataset). Add a --limit N option to bin/leaderboard.js that prints only the first N lines of the ranking (ranks are computed on all players as before). Without the option all players are printed. N must be a positive integer…
The task
Add a `--limit N` option to `bin/leaderboard.js` that prints only the first `N` lines of the ranking (ranks are computed on all players as before). Without the option all players are printed. `N` must be a positive integer; otherwise print `invalid --limit` to stderr and exit with status 2. The option may come before…
Part of efederici/smol-software-harbor.