Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/man/man.sh
Show First 20 Lines • Show All 559 Lines • ▼ Show 20 Lines | while getopts 'M:P:S:adfhkm:op:tw' cmd_arg; do | ||||
p) MANROFFSEQ=$OPTARG ;; | p) MANROFFSEQ=$OPTARG ;; | ||||
t) tflag=tflag ;; | t) tflag=tflag ;; | ||||
w) wflag=wflag ;; | w) wflag=wflag ;; | ||||
*) man_usage ;; | *) man_usage ;; | ||||
esac | esac | ||||
done >&2 | done >&2 | ||||
shift $(( $OPTIND - 1 )) | shift $(( $OPTIND - 1 )) | ||||
OPTIND=1 | |||||
# Check the args for incompatible options. | # Check the args for incompatible options. | ||||
case "${fflag}${kflag}${tflag}${wflag}" in | case "${fflag}${kflag}${tflag}${wflag}" in | ||||
fflagkflag*) echo "Incompatible options: -f and -k"; man_usage ;; | fflagkflag*) echo "Incompatible options: -f and -k"; man_usage ;; | ||||
fflag*tflag*) echo "Incompatible options: -f and -t"; man_usage ;; | fflag*tflag*) echo "Incompatible options: -f and -t"; man_usage ;; | ||||
fflag*wflag) echo "Incompatible options: -f and -w"; man_usage ;; | fflag*wflag) echo "Incompatible options: -f and -w"; man_usage ;; | ||||
*kflagtflag*) echo "Incompatible options: -k and -t"; man_usage ;; | *kflagtflag*) echo "Incompatible options: -k and -t"; man_usage ;; | ||||
*kflag*wflag) echo "Incompatible options: -k and -w"; man_usage ;; | *kflag*wflag) echo "Incompatible options: -k and -w"; man_usage ;; | ||||
▲ Show 20 Lines • Show All 457 Lines • Show Last 20 Lines |