From 364ade7b739b4f713063523c21d0bb955625208d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 12 Jul 2010 13:47:50 +0200 Subject: [PATCH] Complain about unknown options. --- sunrise-commit | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sunrise-commit b/sunrise-commit index 49cde82..76b9991 100755 --- a/sunrise-commit +++ b/sunrise-commit @@ -249,6 +249,9 @@ main() { commitmsg=${commitmsg+${commitmsg} }${@} break ;; + -*) + die "Unknown option: ${1}; see --help." >&2 + ;; *) commitmsg=${commitmsg+${commitmsg} }${1} ;;