change a little and update for test.
add a shell for getopts for bash