原创 對 getopts 的理解

getopts 格式 1 #!/bin/bash 2 echo "begin index is $OPTIND" 3 echo "begin ARG is $OPTARG" 4 5 while getopts ":ab