From 514f69e8bc543f642c2d2ef3acf8be602b7dffea Mon Sep 17 00:00:00 2001 From: Mandeep Singh Baines Date: Sat, 5 Feb 2011 12:09:55 -0800 Subject: [PATCH] cros_workon: fix --help to return an exit code of 0 BUG=n0ne TEST=cros_workon --help && echo "test passed" Change-Id: I4d0835b0651f70256e7df82a174fbc8d025cba88 Review URL: http://codereview.chromium.org/6312176 --- cros_workon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cros_workon b/cros_workon index 9632ea6f92..d991356c55 100755 --- a/cros_workon +++ b/cros_workon @@ -31,7 +31,7 @@ commands: list: List of live ebuilds (workon ebuilds if --all) list-all: List all of the live ebuilds for all setup boards iterate: For each ebuild, cd to the source dir and run a commond" -FLAGS "$@" || exit 1 +FLAGS "$@" || { [ "${FLAGS_help}" = "${FLAGS_TRUE}" ] && exit 0; } || exit 1 eval set -- "${FLAGS_ARGV}"