[oe-commits] [bitbake] 04/05: toaster: --help now returns 0 instead of 1

git at git.openembedded.org git at git.openembedded.org
Wed Aug 10 23:07:50 UTC 2016


rpurdie pushed a commit to branch master
in repository bitbake.

commit 1d5102fe6c932dad1c2b975385e10a33a91ba1a4
Author: Randy Witt <randy.e.witt at linux.intel.com>
AuthorDate: Tue Aug 2 16:43:54 2016 -0700

    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 at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list