]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: --help now returns 0 instead of 1
authorRandy Witt <randy.e.witt@linux.intel.com>
Tue, 2 Aug 2016 23:43:54 +0000 (16:43 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Aug 2016 23:06:10 +0000 (00:06 +0100)
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@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bin/toaster

index e3a0dae48f3e3554709e6fe60beedb50ef8247f6..79ab301de8e4aa7011ae2caba340f2b1183d1700 100755 (executable)
@@ -203,6 +203,10 @@ for param in $*; do
                 ADDR_PORT="localhost:$PORT"
             fi
     ;;
+    --help)
+            echo "$HELP"
+            return 0
+    ;;
     *)
             echo "$HELP"
             return 1