All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] toaster: --help now returns 0 instead of 1
@ 2016-08-02 23:43 Randy Witt
  0 siblings, 0 replies; only message in thread
From: Randy Witt @ 2016-08-02 23:43 UTC (permalink / raw)
  To: bitbake-devel

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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-02 23:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-02 23:43 [PATCH] toaster: --help now returns 0 instead of 1 Randy Witt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.