diff options
-rw-r--r-- | src/cmd.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -58,6 +58,8 @@ print_opt_summaries() printf '%s\n' "${summary}" | fold -s -w 56 | \ sed "2,\$s/^/${padding}/;" done + + return 0 } print_cmd_summaries() @@ -80,6 +82,8 @@ print_cmd_summaries() printf '%s\n' "${summary}" | fold -s -w 56 | \ sed "2,\$s/^/${padding}/;" done + + return 0 } print_cmd_usage() @@ -93,6 +97,7 @@ print_cmd_usage() usage="$(get_msg "cmd_${cmd_clean}_usage")" printf "$(get_msg 'cmd_usage')\n" "${0}" "${cmd}" "${usage}" + return 0 } is_cmd() @@ -116,4 +121,6 @@ run_cmd() else error 1 "$(get_msg 'cmd_not_found')" "${cmd}" fi + + return 0 } |