summaryrefslogtreecommitdiffstats
path: root/src/cmd.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2017-08-03 13:05:12 (EDT)
committer P. J. McDermott <pj@pehjota.net>2017-08-03 13:05:12 (EDT)
commitc0bd6406879ce9c2f7c6fd2693edffcf2a64d492 (patch)
tree40675a5b0548860b3def987a25a2ce8a734189e9 /src/cmd.sh
parent06a34b8708d80db9a81e5a1b06f196c59bae851a (diff)
src/cmd.sh: Add return statements
Diffstat (limited to 'src/cmd.sh')
-rw-r--r--src/cmd.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cmd.sh b/src/cmd.sh
index dbf28ba..71c6180 100644
--- a/src/cmd.sh
+++ b/src/cmd.sh
@@ -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
}