Skip to content

Per-filter help: imgcli -filters <name> #76

Description

@swperb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions