planime: Use getopts for argument parsing.