[gnome-continuous-yocto/gnomeostree-3.28-rocko: 1796/8267] bitbake: toaster: --help now returns 0 instead of 1



commit cae9e6f695be744688a5bacce6b49f2db26cbc37
Author: Randy Witt <randy e witt linux intel com>
Date:   Tue Aug 2 16:43:54 2016 -0700

    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>

 bitbake/bin/toaster |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
index e3a0dae..79ab301 100755
--- a/bitbake/bin/toaster
+++ b/bitbake/bin/toaster
@@ -203,6 +203,10 @@ for param in $*; do
                 ADDR_PORT="localhost:$PORT"
             fi
     ;;
+    --help)
+            echo "$HELP"
+            return 0
+    ;;
     *)
             echo "$HELP"
             return 1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]