Commit 9dd968da authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Added long aliases for init command arguments

parent a4380b15
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ set_arg ()
			read dest metavar argtype default
			read -a names
		} <<< "${!arg}"
		for name in $names; do
		for name in ${names[@]}; do
			if [ $name = $argument ]; then
				found=yes
				break
+2 −2
Original line number Diff line number Diff line
@@ -57,8 +57,8 @@ cmd_init ()
{
	summary="set up git-hook directories in a repository"
	local force skip
	add_arg FLAG -f force
	add_arg FLAG -s skip
	add_arg FLAG -f force; add_arg_alias force --force
	add_arg FLAG -s skip; add_arg_alias skip --skip
	parse_args "$@" || return

	cd "$GIT_DIR"/hooks