add option to run forever

This commit is contained in:
Eric House 2017-10-19 20:50:33 -07:00
parent 4a1e51b54a
commit 5223ccabe1

View file

@ -19,7 +19,7 @@ MAXDEVS=""
ONEPER="" ONEPER=""
RESIGN_RATIO="" RESIGN_RATIO=""
DROP_N="" DROP_N=""
MINRUN=2 MINRUN=2 # seconds
ONE_PER_ROOM="" # don't run more than one device at a time per room ONE_PER_ROOM="" # don't run more than one device at a time per room
USE_GTK="" USE_GTK=""
UNDO_PCT=0 UNDO_PCT=0
@ -609,6 +609,7 @@ function usage() {
echo " [--one-per] # force one player per device \\" >&2 echo " [--one-per] # force one player per device \\" >&2
echo " [--port <int>] \\" >&2 echo " [--port <int>] \\" >&2
echo " [--resign-ratio <0 <= n <=1000 > \\" >&2 echo " [--resign-ratio <0 <= n <=1000 > \\" >&2
echo " [--no-timeout] # run until all games done \\" >&2
echo " [--seed <int>] \\" >&2 echo " [--seed <int>] \\" >&2
echo " [--send-chat <interval-in-seconds> \\" >&2 echo " [--send-chat <interval-in-seconds> \\" >&2
echo " [--udp-incr <pct>] \\" >&2 echo " [--udp-incr <pct>] \\" >&2
@ -698,6 +699,9 @@ while [ "$#" -gt 0 ]; do
RESIGN_RATIO=$(getArg $*) RESIGN_RATIO=$(getArg $*)
shift shift
;; ;;
--no-timeout)
TIMEOUT=0x7FFFFFFF
;;
--help) --help)
usage usage
;; ;;