From 65cce6164f8de46bf95c299eb3202c1c27d9cda5 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 02 Sep 2014 21:59:20 -0400 Subject: prokit: Exit on illegal option --- diff --git a/src/prokit.sh b/src/prokit.sh index 9580cfa..037c233 100644 --- a/src/prokit.sh +++ b/src/prokit.sh @@ -72,7 +72,10 @@ main() load_locale load_cmds - get_options "${@}" + if ! get_options "${@}"; then + cmd_help_main >&2 + exit 1 + fi shift $(($OPTIND - 1)) if ${opt_h:-false}; then -- cgit v0.9.1