getopts6.sub

来自「android-w.song.android.widget」· SUB 代码 · 共 28 行

SUB
28
字号
aflag=bflag=while getopts :ac name "$@"do	case $name in	a)	aflag=1 ;;	c)	cflag=1 ;;	?)	exit 2;;	esac	# this came in in a bug report -- it's really a usage error	# but it shouldn't cause the shell to crash	shiftdoneif [ ! -z "$aflag" ] ; then echo -a specified ; fiif [ ! -z "$cflag" ] ; then echo -c specified ; fiif [ "$OPTIND" -gt 1 ]then	shift $(( $OPTIND - 1 ))fiecho remaining args: "$*"exit 0

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?