getopts::getopts returns it's own internally defined type result. Instead, it should be changed to use the result::t type to be more consistent.