forked from p34709852/monkey
Deploy: Display help if missing arguments
This commit is contained in:
parent
3aa6d4a119
commit
c8e4a4f0ef
|
@ -93,6 +93,7 @@ has_sudo() {
|
||||||
exit_if_missing_argument() {
|
exit_if_missing_argument() {
|
||||||
if [ -z "$2" ] || [ "${2:0:1}" == "-" ]; then
|
if [ -z "$2" ] || [ "${2:0:1}" == "-" ]; then
|
||||||
echo "Error: Argument for parameter '$1' is missing" >&2
|
echo "Error: Argument for parameter '$1' is missing" >&2
|
||||||
|
echo_help
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue