diff --git a/copy-firmware.sh b/copy-firmware.sh index dd4b9b6f..9a2b7156 100755 --- a/copy-firmware.sh +++ b/copy-firmware.sh @@ -11,8 +11,13 @@ compext= destdir= num_jobs=1 +usage() { + echo "Usage: $0 [-v] [-jN] [--xz|--zstd] " +} + err() { printf "ERROR: %s\n" "$*" + usage exit 1 } @@ -66,6 +71,11 @@ while test $# -gt 0; do shift ;; + -h|--help) + usage + exit 1 + ;; + *) if test -n "$destdir"; then err "unknown command-line options: $*"