# Parse the command line
parse_args() {
+ JOBS=0
PATTERNS=()
SUDO=()
STOP=0
for arg; do
case "$arg" in
+ -j*)
+ JOBS="${arg#-j}"
+ ;;
--bfs=*)
BFS="${arg#*=}"
;;
esac
done
+ if ((JOBS == 0)); then
+ if command -v nproc &>/dev/null; then
+ JOBS=$(nproc)
+ else
+ JOBS=1
+ fi
+ fi
+
# Try to resolve the path to $BFS before we cd, while also supporting
# --bfs="./bin/bfs -S ids"
read -a BFS <<<"${BFS:-$BIN/bfs}"