getopts

2016-11-04  本文已影响21人  guoguo_lay

getopts

command -n -b value -t
                                optind=1   argv[1]=-n

opt=n optarg=null optind=2 argv[2]=-b
opt=b optarg=value optind=4 argv[4]=-t
opt=t optarg=null optind=5 argv[5]=null

上一篇 下一篇

猜你喜欢

热点阅读