From 9d0858ea4d31eaf670c44a338b7068bd836b03c5 Mon Sep 17 00:00:00 2001 From: shaddai Date: Mon, 4 Jan 2016 16:58:23 +0100 Subject: fix overwrite by previous commit --- phpmalwarefinder | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpmalwarefinder b/phpmalwarefinder index 20d3cee..186218a 100755 --- a/phpmalwarefinder +++ b/phpmalwarefinder @@ -50,12 +50,13 @@ Usage ${0##*/} [-cfhw] ... -c Optional path to a configuration file -f Fast mode -h Show this help message + -t Specify the number of threads to use (8 by default) -v Verbose mode EOF } OPTIND=1 -while getopts "c:fhv" opt; do +while getopts "c:fht:v" opt; do case "$opt" in h) show_help @@ -67,6 +68,9 @@ while getopts "c:fhv" opt; do c) CONFIG_PATH=${OPTARG} ;; + t) + OPTS="${OPTS} --threads=${OPTARG}" + ;; v) OPTS="${OPTS} -s" ;; -- cgit v1.3