GNU getopt(3)(getopt(1)在Linux上由命令行使用)支持解析长选项。 ... #!/usr/bin/env bash optspec=":hv-:" while getopts "$optspec" optchar; ...
確定! 回上一頁