mkproject: rewrite usage function using here-document
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
41faf402e2
commit
80f7892306
|
|
@ -29,12 +29,16 @@ CONFIGPATH="${SCRIPTPATH}/sources/meta-digi/sdk/config"
|
||||||
|
|
||||||
## Local functions
|
## Local functions
|
||||||
usage() {
|
usage() {
|
||||||
printf "\nUsage: source ${SCRIPTNAME} [OPTIONS]\n
|
cat <<EOF
|
||||||
|
|
||||||
|
Usage: source ${SCRIPTNAME} [OPTIONS]
|
||||||
|
|
||||||
-l list available platforms
|
-l list available platforms
|
||||||
-p <platform> select platform for the project
|
-p <platform> select platform for the project
|
||||||
\n"
|
|
||||||
|
|
||||||
printf "Available platforms: ${AVAILABLE_PLATFORMS}\n\n"
|
Available platforms: ${AVAILABLE_PLATFORMS}
|
||||||
|
|
||||||
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
error() {
|
error() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue