aboutsummaryrefslogtreecommitdiff
path: root/shflags
diff options
context:
space:
mode:
authorKate Ward <kate.ward@forestent.com>2017-10-21 19:45:29 +0200
committerKate Ward <kate.ward@forestent.com>2017-10-21 19:45:29 +0200
commit16e8d0d3a58dfe8ccc0423b2cfbdf8119e7a86d7 (patch)
tree86a192b9423cc648c53523b6a3ca296405b7be71 /shflags
parent78740ed6347816adcd7e863b0eb32099464a40a7 (diff)
downloadshflags-16e8d0d3a58dfe8ccc0423b2cfbdf8119e7a86d7.tar.gz
Fixed #47. A call for help should return a non-zero exit code.
Diffstat (limited to 'shflags')
-rw-r--r--shflags2
1 files changed, 1 insertions, 1 deletions
diff --git a/shflags b/shflags
index a261802..1ed2d00 100644
--- a/shflags
+++ b/shflags
@@ -892,7 +892,7 @@ _flags_parseGetopt() {
if [ "${FLAGS_help}" -eq ${FLAGS_TRUE} ]; then
flags_help
flags_error='help requested'
- flags_return=${FLAGS_TRUE}
+ flags_return=${FLAGS_FALSE}
break
fi
fi