Added new argument to display matching pattern's line number in the file.

This commit is contained in:
Gabor Gyorvari
2018-08-25 18:13:45 +02:00
parent 07b9cb6e80
commit 34a89a9518
2 changed files with 37 additions and 12 deletions

View File

@@ -30,6 +30,7 @@ Usage: php scan.php -d <directory>
-s --no-stop Continue scanning file after first hit
-p --pattern Show Patterns next to the file name
-t --time Show time of last file change
--line-number Display matching pattner line number in file
```
Ignore argument could be used multiple times and accept glob style matching ex.: "`cache*`", "`??-cache.php`" or "`/cache`" etc.