mirror of
https://github.com/tj/git-extras.git
synced 2026-09-12 16:36:22 -04:00
git-summary: reject invalid option
Argument starts with '-' can't be committish, so we can safely reject it.
This commit is contained in:
parent
c675d0afb8
commit
16c1f0d3dc
|
|
@ -13,6 +13,10 @@ for arg in "$@"; do
|
|||
--dedup-by-email)
|
||||
DEDUP_BY_EMAIL=1
|
||||
;;
|
||||
-*)
|
||||
>&2 echo "unknown argument $arg found"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
# set the argument back
|
||||
set -- "$@" "$arg"
|
||||
|
|
|
|||
Loading…
Reference in a new issue