mirror of
https://develop.openfoam.com/Development/ThirdParty-common.git
synced 2025-12-08 06:57:50 +00:00
STYLE: provide 'die' as alternative to 'usage'
- make option parsing more consistent
This commit is contained in:
5
makeQt
5
makeQt
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user