summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRandy Witt <randy.e.witt@linux.intel.com>2016-08-02 16:43:54 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-11 00:06:10 +0100
commit1d5102fe6c932dad1c2b975385e10a33a91ba1a4 (patch)
treeb0508aedb0dcee8412e007bc4bed24f2b6d0180a /bin
parent40f605199fb3ec2549611508b7576c64d735b2b7 (diff)
downloadbitbake-contrib-1d5102fe6c932dad1c2b975385e10a33a91ba1a4.zip
bitbake-contrib-1d5102fe6c932dad1c2b975385e10a33a91ba1a4.tar.gz
bitbake-contrib-1d5102fe6c932dad1c2b975385e10a33a91ba1a4.tar.bz2
toaster: --help now returns 0 instead of 1
If the user explicitly passes in "--help" then it should return 0. This is the convention follow by the typical application. This allows the user to check for options without triggering an error. Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/toaster4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/toaster b/bin/toaster
index e3a0dae..79ab301 100755
--- a/bin/toaster
+++ b/bin/toaster
@@ -203,6 +203,10 @@ for param in $*; do
ADDR_PORT="localhost:$PORT"
fi
;;
+ --help)
+ echo "$HELP"
+ return 0
+ ;;
*)
echo "$HELP"
return 1