# GPLv2
name=
+send_email_args=
## Parse options
while [ -n "$1" ]; do
arg="$1"; shift
case "$arg" in
+ -s)
+ send_email_args="$1"; shift;;
-*)
- echo "Usage: tg [...] mail [NAME]" >&2
+ echo "Usage: tg [...] mail [-s SEND_EMAIL_ARGS] [NAME]" >&2
exit 1;;
*)
[ -z "$name" ] || die "name already specified ($name)"
# NOTE: git-send-email handles cc itself
-git send-email "${people[@]}" "$patchfile"
+git send-email $send_email_args "${people[@]}" "$patchfile"
rm "$patchfile"