Commit e529f388 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Added the commands' args and options to the parser

parent 28e3ef43
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -164,18 +164,26 @@ free_args ()
cmd_init ()
{
	summary="set up git-hook directories in a repository"
	local force
	add_arg FLAG -f force
	parse_args "$@"
}

cmd_add ()
{
	summary="add a script to a hook"
	local hook script
	add_option hook yes
	add_option script yes
	parse_args "$@" || return
}

cmd_remove ()
{
	summary="remove a script from a hook"
	local hook script
	add_option hook yes
	add_option script yes
	parse_args "$@" || return
}