STYLE: provide 'die' as alternative to 'usage'

- make option parsing more consistent
This commit is contained in:
mark
2016-06-16 19:50:38 +02:00
parent b66ec91d01
commit 0b1c761075
11 changed files with 69 additions and 122 deletions

5
makeQt
View File

@ -73,17 +73,16 @@ do
;;
-gcc)
export CXX=g++ # use g++
shift
;;
[1-9]* | qt-[1-9]*)
qtVERSION="${1%%/}";
qtVERSION="${qtVERSION#qt-}"
shift
;;
*)
usage "unknown option/argument: '$*'"
die "unknown option/argument: '$1'"
;;
esac
shift
done
#------------------------------------------------------------------------------