diff --git a/sh/core/code.sh b/sh/core/code.sh index af9962f..f8748c0 100644 --- a/sh/core/code.sh +++ b/sh/core/code.sh @@ -263,17 +263,17 @@ EOF "bash" | "dash" | "sh") unset command ;; *) ;; esac + # context / shell + if rwx_shell_interactive; then + # display help + rwx_code_help # context / command - if [ -n "${command}" ]; then + else local function # find the matching function function="$(rwx_code_command_function "${command}")" if [ -n "${function}" ]; then "${function}" "${@}" fi - # context / shell - else - # display help - rwx_code_help fi }