Commit 98d40f0a authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Made sure all commands exit early if help called

If the usage messages for a command were called, exit before performing
the command's action. Made sure all commands did so.
parent ad581349
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ cmd_init ()
	local force skip
	add_arg FLAG -f force
	add_arg FLAG -s skip
	parse_args "$@"
	parse_args "$@" || return

	cd "$GIT_DIR"/hooks
	for hook in $HOOKS; do
@@ -176,6 +176,7 @@ cmd_installed ()
cmd_hooks ()
{
	summary="list all the hooks"
	parse_args "$@" || return
	echo "$HOOKS"
}