Bash getopts: reading $OPTARG for optional flags? - Stack ...
經安全檢測,此網站為安全網站,請放心前往原始網址!
Bash getopts: reading $OPTARG for optional flags? - Stack ...
2013年8月24日 - I'd like to be able to accept both mandatory and optional flags in my script. Here's what I have so far. #!bin/bash while getopts ":a:b:cdef" opt; ...