From: Randy Witt Date: Tue, 2 Aug 2016 23:43:54 +0000 (-0700) Subject: toaster: --help now returns 0 instead of 1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d5102fe6c932dad1c2b975385e10a33a91ba1a4;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/bin/toaster b/bin/toaster index e3a0dae48f3..79ab301de8e 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