function runHook -S argparse "force" -- $argv set -l name $argv[1] set -l message $argv[2] if type -q "$name" "$name" or exit 1 else if [ -n "$_flag_force" ] if test -n "$message" echo "$message" end exit 1 else return 1 end end