Use optparse instead getopts for safety parse.