You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--per-page is not validated (0, negative, non-numeric) and endpoint maximums are not advertised #99
What happens:--per-page values that are invalid or out of range aren't rejected. Depending on the command, cf silently returns a wrong result or fails with a raw API error.
[8000024] Invalid list options provided, exit 1: the endpoint's maximum isn't advertised by the flag
Expected: validate --per-page locally (a positive integer within the endpoint's documented maximum) and report a usage error; show the maximum in --help.
Related: #20 (lists silently return only the first page).
Activity
penalosa commentedon Oct 2, 2026
After a little bit of investigation, this is an upstream yargs bug with validation number types: yargs/yargs#1079.
Over time, we hope to improve the API error messaging here.