Skip to content

How to properly separate argument list and pattern? #1989

Discussion options

You must be logged in to vote

From the man page:

       PATTERN
           A regular expression used for searching. To match a pattern beginning with a dash, use the
           -e/--regexp option.

So, rg -F -e -cpus=.

Alternatively, you can use the standard Unix convention of -- to signal an end to non-positional arguments. So, rg -F -- -cpus=.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stephane-archer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants