From: Hugo Villeneuve Date: Thu, 5 Oct 2023 21:35:52 +0000 (-0400) Subject: Add FPS CLI option X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=7e9d87ae98e71052f4bda4ac3988238c7052800e;p=fgen.git Add FPS CLI option --- diff --git a/fgen.sh b/fgen.sh index 019e662..417e222 100755 --- a/fgen.sh +++ b/fgen.sh @@ -88,14 +88,18 @@ print_usage() echo echo "Options:" echo " -d affiche les informations de debug" + echo " -r nombre de trames par seconde (FPS)" echo " -h affiche ce message d'aide" } -while getopts "dh" flag ;do +while getopts "dhr:" flag ;do case ${flag} in d) debug="1" ;; + r) + fps="${OPTARG}" + ;; h) print_usage exit 0