Skip to content

git global options (like --no-pager) before subcommands don't work #228

@praagyajoshi

Description

@praagyajoshi

Hello, thank you for this wonderful project! I just installed the hook and ran into an issue with git commands.
Claude Code likes to run git --no-pager diff (which works) but the rtk version (rtk git --no-pager diff) fails:

❯ rtk git --no-pager diff
error: unexpected argument '--no-pager' found

Usage: rtk git [OPTIONS] <COMMAND>

For more information, try '--help'.

I looked around and #99 is supposed to have fixed it.
However, that doesn't seem to be the case.

Am I missing something? Thank you.


❯ rtk --version
rtk 0.22.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingeffort-smallQuelques heures, 1 fichier

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions