Template for getopts