You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,9 @@ POSITIONAL ARGUMENTS
35
35
pattern
36
36
-------
37
37
38
-
The pattern to search for. This can either be a string, or a regular expression (indicated by a string starting and ending with **/**), or a Callable (indicated by a string starting with **{** and ending with **}**.
38
+
The pattern to search for. This can either be a string, or a regular expression (indicated by a string starting and ending with **/**), or a Callable (indicated by a string starting with **{** and ending with **}**.
39
+
40
+
Can also be specified with the `--pattern` named argument, in which case all the positional arguments are considered to be a path specification.
39
41
40
42
path(s)
41
43
-------
@@ -125,6 +127,11 @@ Indicate whether only the matched pattern should be produced, rather than the li
125
127
126
128
Indicate the path of the file in which the result of the search should be placed. Defaults to `STDOUT`.
127
129
130
+
--pattern
131
+
---------
132
+
133
+
Alternative way to specify the pattern to search for. If (implicitely) specified, will assume the first positional parameter specified is actually a path specification, rather than a pattern. This allows the pattern to be searched for to be saved with `--save`.
0 commit comments