From e15beed400f3ced1ba2c60fb78232de177a05e30 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Thu, 10 Mar 2016 22:03:32 +0000 Subject: build: show help output when there is an error --- build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build') diff --git a/build b/build index a4fa0a70..fa8b54db 100755 --- a/build +++ b/build @@ -87,10 +87,12 @@ if [ $# -gt 1 ]; then if [ -f "${build}"/"${mode}"/"${option}" ]; then "${build}"/"${mode}"/"${option}" "$@" else + help die "Invalid option for '${mode}'. See './build ${mode} list'." fi else - die "Invalid mode. See './build help'." + help + die "Invalid mode '${mode}'. See './build help'." fi esac else -- cgit v1.2.3-70-g09d2