summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2017-07-22 15:22:50 (EDT)
committer P. J. McDermott <pj@pehjota.net>2017-07-22 15:22:50 (EDT)
commit719c1bcbdfda016f7b3bd10b9b35631739586fec (patch)
treef50b1e0d45d7c255fa4a384fbc0fc4804b2c5711
parent414dc557eba3b8ea5ee5bfe088b9657489c3310c (diff)
register_cmd(): New function
-rw-r--r--src/cmd.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cmd.sh b/src/cmd.sh
index b5948a9..de10310 100644
--- a/src/cmd.sh
+++ b/src/cmd.sh
@@ -19,6 +19,15 @@
cmds=
+register_cmd()
+{
+ local cmd="${1}"
+ shift 1
+
+ cmds="${cmds}${cmd} "
+ return 0
+}
+
print_opt_summaries()
{
local padding=