#!/bin/env fish begin function installSW end function configureSW end function runInstaller -a action if [ -z "$action" ] || [ "$action" = "install" ] installSW $argv[2..] else if [ "$action" = "configure" ] configureSW $argv[2..] end end end