From 7e9d87ae98e71052f4bda4ac3988238c7052800e Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Thu, 5 Oct 2023 17:35:52 -0400 Subject: [PATCH] Add FPS CLI option --- fgen.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.20.1