diff options
| -rwxr-xr-x | phpmalwarefinder | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/phpmalwarefinder b/phpmalwarefinder index 20d3cee..186218a 100755 --- a/phpmalwarefinder +++ b/phpmalwarefinder | |||
| @@ -50,12 +50,13 @@ Usage ${0##*/} [-cfhw] <file|folder> ... | |||
| 50 | -c Optional path to a configuration file | 50 | -c Optional path to a configuration file |
| 51 | -f Fast mode | 51 | -f Fast mode |
| 52 | -h Show this help message | 52 | -h Show this help message |
| 53 | -t Specify the number of threads to use (8 by default) | ||
| 53 | -v Verbose mode | 54 | -v Verbose mode |
| 54 | EOF | 55 | EOF |
| 55 | } | 56 | } |
| 56 | 57 | ||
| 57 | OPTIND=1 | 58 | OPTIND=1 |
| 58 | while getopts "c:fhv" opt; do | 59 | while getopts "c:fht:v" opt; do |
| 59 | case "$opt" in | 60 | case "$opt" in |
| 60 | h) | 61 | h) |
| 61 | show_help | 62 | show_help |
| @@ -67,6 +68,9 @@ while getopts "c:fhv" opt; do | |||
| 67 | c) | 68 | c) |
| 68 | CONFIG_PATH=${OPTARG} | 69 | CONFIG_PATH=${OPTARG} |
| 69 | ;; | 70 | ;; |
| 71 | t) | ||
| 72 | OPTS="${OPTS} --threads=${OPTARG}" | ||
| 73 | ;; | ||
| 70 | v) | 74 | v) |
| 71 | OPTS="${OPTS} -s" | 75 | OPTS="${OPTS} -s" |
| 72 | ;; | 76 | ;; |
