imgcli -filters gblur should print just that filter's syntax line, so agents (and humans) don't parse the whole catalogue on every call.
Where
src/main.c handles -filters. If a name argument follows, print only the matching FilterDef from FILTERS[] in src/filters.c (add a filters_print_one(name) / extend filters_print_list/filters_print_json to accept an optional name filter). Support --json too (single-element array). Unknown name → exit 2 with a clear error.
Done when
imgcli -filters gblur prints one line; imgcli -filters gblur --json prints a 1-element array
- README + AGENTS.md note it; a
tests/run.sh exit-code/JSON case
Difficulty: easy.
imgcli -filters gblurshould print just that filter's syntax line, so agents (and humans) don't parse the whole catalogue on every call.Where
src/main.chandles-filters. If a name argument follows, print only the matchingFilterDeffromFILTERS[]insrc/filters.c(add afilters_print_one(name)/ extendfilters_print_list/filters_print_jsonto accept an optional name filter). Support--jsontoo (single-element array). Unknown name → exit 2 with a clear error.Done when
imgcli -filters gblurprints one line;imgcli -filters gblur --jsonprints a 1-element arraytests/run.shexit-code/JSON caseDifficulty: easy.