Commit e069d19
fix(bugs): print empty-results hint when --vulns alone yields no matches
PR #254 introduced the `empty_filter_hint` helper with a dedicated
"No security vulnerabilities found with the current filters." branch
and a unit test asserting that message, but only wired the helper into
the `--introduced-by` branch of the handler. When the user runs
`bugs list --vulns` without an author filter and zero vulnerabilities
come back, the helper is never reached — they just see an empty table
with no explanation.
Add the matching early return for the `--vulns`-alone case: if the
post-`--vulns` filter is empty and no `--introduced-by` was given,
print `empty_filter_hint(&[], true)` and return the empty list.
Fixes #259.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 048aa32 commit e069d19
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
340 | 350 | | |
341 | 351 | | |
342 | 352 | | |
| |||
0 commit comments