Skip to content

Adopt upstream #2628: grep - stop -l/-m/-t shadowing native grep flags #52

Closed

Description

@kylehgc

Upstream PR: rtk-ai#2628

Bug: rtk claims -l/-m/-t as its own clap short flags, so rtk grep -l <pattern> (and hook-rewritten grep -l) hard-fails with exit 2 instead of listing files. Agents use grep -l constantly.

Verification (2026-07-22 sweep): still present in current src/main.rs:313-325 — survived the grep→search.rs rework. PR is mergeable, touches only main.rs, 3-line prod change + characterization tests.

Why top-ranked: hard failure on a hot agent idiom; smallest diff in the batch.

From claudedocs/adoption-reverify-2026-07-22.md (rank 8). Related grep pick for next wave: rtk-ai#2635 (-h/--no-filename intercepted as help; rescoped 07-22 upstream).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions