Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using --help with aliased rg #47

Closed
kaushalmodi opened this issue Sep 24, 2016 · 2 comments
Closed

Using --help with aliased rg #47

kaushalmodi opened this issue Sep 24, 2016 · 2 comments
Labels
bug A bug.

Comments

@kaushalmodi
Copy link
Contributor

I have aliased rg to rg --follow.

After that rg --help gives this error:

Invalid arguments.

Usage: rg [options] -e PATTERN ... [<path> ...]
       rg [options] <pattern> [<path> ...]
       rg [options] --files [<path> ...]
       rg [options] --type-list
       rg --help
       rg --version

So I need to remember to use \rg --help when I need to see help.

The --help arg probably needs to ignore all other args provided to rg.

@BurntSushi
Copy link
Owner

Yeah, I see, Docopt doesn't make this especially convenient. It looks like I'll need to hand-hold Docopt through this one. (Instead of letting it figure out when to show the usage message itself.)

@kaushalmodi
Copy link
Contributor Author

Thanks for the fix. I confirm the fix.

amsharma91 added a commit to amsharma91/ripgrep that referenced this issue Sep 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug.
Projects
None yet
Development

No branches or pull requests

2 participants