From ceab23964d77a4c84cf58183e373b70e0c4173a0 Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Mon, 29 May 2017 23:27:13 +0100 Subject: [PATCH] Scripts in bin: improved -help message for foamNew --- bin/foamNew | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/bin/foamNew b/bin/foamNew index 5d61de633..adb1f7811 100755 --- a/bin/foamNew +++ b/bin/foamNew @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation +# \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation # \\/ M anipulation | #------------------------------------------------------------------------------- # License @@ -30,33 +30,39 @@ # #------------------------------------------------------------------------------ usage() { - exec 1>&2 - while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat< {args} +Usage: ${0##*/} [OPTIONS] +options: + -help | -h print the usage + -source | -s creates a class source file + -template | -t