Merge pull request #899 from spacewander/git-summary

git-summary: reject invalid option
This commit is contained in:
罗泽轩 2020-12-24 16:04:25 +08:00 committed by GitHub
commit 96b95392ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"