allow --enable option to create a hook with arguments