Show help info if input error

This commit is contained in:
Howard Wu 2022-09-01 10:55:19 +08:00
parent 4142f3b0b9
commit e717deaa1d

View File

@ -141,7 +141,7 @@ opts=$(getopt \
--name "$(basename "$0")" \
--options "" \
-- "$@"
) || abort
) || exit_with_message "Failed to parse options, please check your input"
eval set --"$opts"
while [[ $# -gt 0 ]]; do