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
This commit is contained in:
Mandeep Singh Baines 2011-02-05 12:09:55 -08:00 committed by David James
parent 4e224217a6
commit 514f69e8bc

View File

@ -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}"