Consistency fix

This commit is contained in:
Pierre Pronchery 2015-10-04 13:01:17 +02:00
parent c13a652773
commit bebb776956

View File

@ -53,7 +53,7 @@ _debug()
#usage #usage
_usage() _usage()
{ {
echo "Usage: $PROGNAME [-c][-P prefix] target..." 1>&2 echo "Usage: $PROGNAME [-c] target..." 1>&2
return 1 return 1
} }
@ -69,7 +69,7 @@ while getopts "cO:P:" name; do
export "${OPTARG%%=*}"="${OPTARG#*=}" export "${OPTARG%%=*}"="${OPTARG#*=}"
;; ;;
P) P)
#we can ignore it #XXX ignored for compatibility
;; ;;
?) ?)
_usage _usage
@ -77,7 +77,7 @@ while getopts "cO:P:" name; do
;; ;;
esac esac
done done
shift $(($OPTIND - 1)) shift $((OPTIND - 1))
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
_usage _usage
exit $? exit $?