diff --git a/styx b/styx index 4009fea..41d5bf5 100755 --- a/styx +++ b/styx @@ -102,7 +102,7 @@ while [[ $# -gt 0 ]]; do ;; -h | --host) HOSTNAME="$2" - shift; shift; + shift; ;; --help) help @@ -126,5 +126,9 @@ if [[ $# -gt 0 ]]; then echo "forwarding args: ${BOLD}$*${RESET}" fi +if [[ -z ${cmd+x} ]]; then + error "please specify a command" + help +fi $cmd "$@"