Repository navigation
feat: add --exact flag to only match exact anime titles (#1851) - #1938
Conversation
) Adds --exact/--exact-match style flag that filters search results to only those whose title is an exact (case-insensitive) match for the query. Useful for wrapper scripts that risk auto-selecting the wrong show when only one result comes back. Fixes pystardust#1851
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Preserve literal + characters when comparing exact titles.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
Adds a case-insensitive --exact option for filtering anime search results.
Changes:
- Implements exact-title matching and no-match handling.
- Updates help text and version to 5.1.5.
- Documents the option in the man page.
The exact-match logic incorrectly treats literal + characters as spaces, preventing valid titles such as C++ from matching.
| File | Description |
|---|---|
ani-cli |
Implements the new flag and filtering logic. |
ani-cli.1 |
Documents the --exact option. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Ah you made a new one. |
…tation for exact match behavior
|
@port19x I made the change you requested. Before: |
|
Sorry for the inconvenience. I was testing with double quotes, did not test without it. |
873ac30 to
6b5b06c
Compare



Pull Request Template
Type of change
Description
This feature is asked in issue #1851
I added --exact/--exact-match style flag that filters search results to only those whose title is an exact (case-insensitive) match for the query. Useful for wrapper scripts that risk auto-selecting the wrong show when only one result comes back.
when the --exact flag is used, the program wants to given query and anime names to be an exact match(case-insensitive). If there is no exact match it says "No exact match found.".
Checklist
-chistory and continue work-ddownloads work-e(select episode) aka-r(range selection) works-Sselect index works-qquality works-ssyncplay works-vvlc works--duband regular (sub) mode both work--nextep-countdowncountdown to next ep works-hhelp info is up to dateAdditional Testcases
(these don't block a merge)
--skipani-skip works--no-detachno detach works--exit-after-playauto exit after playing worksCopy Pasta