mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: more consistent use of stderr for script usage
This commit is contained in:
@ -33,8 +33,9 @@ packDir=ThirdParty-$WM_PROJECT_VERSION
|
||||
toolsDir="${0%/*}/tools" # this script is located in the tools/ parent dir
|
||||
|
||||
usage() {
|
||||
while [ $# -gt 0 ]; do echo "$1" 1>&2; shift; done
|
||||
cat <<USAGE 1>&2
|
||||
exec 1>&2
|
||||
while [ "$#" -gt 0 ]; do echo "$1"; shift; done
|
||||
cat <<USAGE
|
||||
Usage: ${0##*/} [OPTION]
|
||||
options:
|
||||
-o <dir> specify alternative output directory
|
||||
|
||||
Reference in New Issue
Block a user