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:
@ -61,6 +61,17 @@ then
|
||||
fi
|
||||
|
||||
|
||||
# Report error and exit
|
||||
die()
|
||||
{
|
||||
exec 1>&2
|
||||
echo
|
||||
echo "Error: see '${0##*/} -help' for usage"
|
||||
while [ "$#" -ge 1 ]; do echo " $1"; shift; done
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Test if it matches "*-none"
|
||||
_foamIsNone()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user