add getopts for shell test