add bash script for getopts usage.