Doing getopts correctly