From 8f2560344f84b6cac651d7dc73ff327af23ac65d Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 4 Jan 2016 16:18:44 +0100 Subject: Add `-t` to specify the number of threads to use --- phpmalwarefinder | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpmalwarefinder b/phpmalwarefinder index c49a7bd..354ab91 100755 --- a/phpmalwarefinder +++ b/phpmalwarefinder @@ -33,12 +33,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 @@ -50,6 +51,9 @@ while getopts "c:fhv" opt; do c) CONFIG_PATH=${OPTARG} ;; + t) + OPTS="${OPTS} --threads=${OPTARG}" + ;; v) OPTS="${OPTS} -s" ;; -- cgit v1.3