A good writeup here: https://medium.com/@Drew_Stokes/bash-argument-parsing-54f3b81a6a8f
Drew's goods:
#!/bin/bashPARAMS=""while (( "$#" )); do
case "$1" in
-f|--flag-with-argument)
FARG=$2
shift 2
;;
--) # end argument parsing
shift
break
;;
-*|...