Deploy: Display help if missing arguments

This commit is contained in:
Mike Salvatore 2022-04-10 14:38:24 -04:00
parent 3aa6d4a119
commit c8e4a4f0ef
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ has_sudo() {
exit_if_missing_argument() {
if [ -z "$2" ] || [ "${2:0:1}" == "-" ]; then
echo "Error: Argument for parameter '$1' is missing" >&2
echo_help
exit 1
fi
}