https://sookocheff.com/post/bash/parsing-bash-script-arguments-with-shopts/ http://wiki.bash-hackers.org/howto/getopts_tutorial