getopts, error handling