summaryrefslogtreecommitdiffstats
path: root/src/main.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.sh')
-rw-r--r--src/main.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.sh b/src/main.sh
index a06a885..feb425f 100644
--- a/src/main.sh
+++ b/src/main.sh
@@ -89,8 +89,8 @@ main()
elif ${opt_V:-false}; then
cmd='version'
elif [ ${#} -lt 1 ]; then
- cmd_help_main >&2
- exit 1
+ cmd_help_main 1>&2
+ return 1
else
cmd="${1}"
shift 1