[bitbake-devel] [PATCH] toaster: --help now returns 0 instead of 1

Randy Witt randy.e.witt at linux.intel.com
Tue Aug 2 23:43:54 UTC 2016


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 at linux.intel.com>
---
 bin/toaster | 4 ++++
 1 file changed, 4 insertions(+)

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
-- 
2.7.4




More information about the bitbake-devel mailing list