summaryrefslogtreecommitdiffstats
path: root/bitbake/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:07:09 +0100
commitcae9e6f695be744688a5bacce6b49f2db26cbc37 (patch)
tree1be177fc355e0d086a09353c4abd17ee34724ac7 /bitbake/bin
parent5d1d1774ec182ba776d364189629f3853448a69e (diff)
downloadpoky-cae9e6f695be744688a5bacce6b49f2db26cbc37.tar.gz
bitbake: 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. (Bitbake rev: 1d5102fe6c932dad1c2b975385e10a33a91ba1a4) Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-xbitbake/bin/toaster4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
index e3a0dae48f..79ab301de8 100755
--- a/bitbake/bin/toaster
+++ b/bitbake/bin/toaster
@@ -203,6 +203,10 @@ for param in $*; do
203 ADDR_PORT="localhost:$PORT" 203 ADDR_PORT="localhost:$PORT"
204 fi 204 fi
205 ;; 205 ;;
206 --help)
207 echo "$HELP"
208 return 0
209 ;;
206 *) 210 *)
207 echo "$HELP" 211 echo "$HELP"
208 return 1 212 return 1