summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-01-23 14:13:51 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-01-23 14:13:51 (EST)
commitdfd0c5352252189f39fefb1083f5a3c4bafb387d (patch)
treef394f1df5f72ce2f0af6f670209aff3fe7b1580d
parent376227c55ebcd028ea310180040bea45ab82f4d6 (diff)
cmd/help, cmd/version: Add explicit returns to main functions
-rw-r--r--src/cmd/help.sh2
-rw-r--r--src/cmd/version.sh2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/help.sh b/src/cmd/help.sh
index c699c73..ab878a1 100644
--- a/src/cmd/help.sh
+++ b/src/cmd/help.sh
@@ -38,6 +38,8 @@ cmd_help_main()
printf "$(get_msg 'cmd_help_summary_head')\n"
print_cmd_summaries
+
+ return 0
}
cmd_help_register()
diff --git a/src/cmd/version.sh b/src/cmd/version.sh
index 9d53ded..27f6eaf 100644
--- a/src/cmd/version.sh
+++ b/src/cmd/version.sh
@@ -24,6 +24,8 @@ cmd_version_main()
printf "$(get_msg 'cmd_version_copyright')\n" \
'2012-2016' 'Patrick "P. J." McDermott'
+
+ return 0
}
cmd_version_register()