Skip to content

find and grep commands fail (unexpected argument '-n' found) #204

@MaciekBaron

Description

@MaciekBaron

Currently find and grep commands fail when used by Claude or executed using rtk directly.

grep seems to be addressed by #135 however I don't see anything for find.

Problem

The following command:

rtk find . -name test

returns

error: unexpected argument '-n' found

  tip: to pass '-n' as a value, use '-- -n'

Usage: rtk find [OPTIONS] <PATTERN> [PATH]

For more information, try '--help'.

Likewise, the following command:

rtk grep -n test CLAUDE.md

returns

error: unexpected argument '-n' found

  tip: to pass '-n' as a value, use '-- -n'

Usage: rtk grep [OPTIONS] <PATTERN> [PATH] [EXTRA_ARGS]...

For more information, try '--help'.

Expected behaviour

I expect the commands to work exactly the same way as they would without prefixing them with rtk.

Technical analysis

Other commands which include -n, such as rtk git log -n 1, work without any issues.

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