projects
/
fgen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
804a17f
)
Add FPS CLI option
author
Hugo Villeneuve
<hugo@hugovil.com>
Thu, 5 Oct 2023 21:35:52 +0000
(17:35 -0400)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Sat, 7 Oct 2023 15:45:53 +0000
(11:45 -0400)
fgen.sh
patch
|
blob
|
history
diff --git
a/fgen.sh
b/fgen.sh
index
019e662
..
417e222
100755
(executable)
--- 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 "dh
r:
" flag ;do
case ${flag} in
d)
debug="1"
;;
+ r)
+ fps="${OPTARG}"
+ ;;
h)
print_usage
exit 0