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

Add -e/--pattern option #679

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add -e/--pattern option #679

wants to merge 1 commit into from

Conversation

rzlourenco
Copy link

grep provides an option to use an explicit pattern. This is useful since we may need to search for a pattern that starts with - or --.

@RomanHargrave
Copy link

As far as my experience goes, this can be done already:

ag --fish -- '--flag' scripts/ should work, as it would with GNU grep make install | grep -v -- '-- Up-to-date'.

@bishopb
Copy link

bishopb commented Aug 24, 2015

See also the earlier PR #672 that already implemented this. That said, the -- workaround by @RomanHargrave makes sense.

@wsdjeg
Copy link

wsdjeg commented Feb 6, 2018

I still prefer use an option instead of seperator. I just check ripgrep, it support -e option, after -e option I can use any string.

@orgads
Copy link

orgads commented Apr 20, 2018

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants