Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Issue 6312176: cros_workon: fix --help to return an exit code of 0 (Closed)

Created:
9 years, 10 months ago by Mandeep Singh Baines
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

cros_workon: fix --help to return an exit code of 0 BUG=n0ne TEST=cros_workon --help && echo "test passed" Change-Id: I4d0835b0651f70256e7df82a174fbc8d025cba88 Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=db08142

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M host/cros_workon View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
Mandeep Singh Baines
9 years, 10 months ago (2011-02-05 19:32:05 UTC) #1
anush
9 years, 10 months ago (2011-02-05 19:42:58 UTC) #2
lgtm

On Sat, Feb 5, 2011 at 11:32 AM,  <msb@chromium.org> wrote:
> Reviewers: diandersAtChromium, anush,
>
> Description:
> cros_workon: fix --help to return an exit code of 0
>
> BUG=n0ne
> TEST=cros_workon --help && echo "test passed"
>
> Change-Id: I4d0835b0651f70256e7df82a174fbc8d025cba88
>
> Please review this at http://codereview.chromium.org/6312176/
>
> SVN Base: http://git.chromium.org/git/dev-util.git@master
>
> Affected files:
>  M host/cros_workon
>
>
> Index: host/cros_workon
> diff --git a/host/cros_workon b/host/cros_workon
> index
>
9632ea6f9220373c83c31b689aa59e756e1f1cd8..d991356c55ca3bf44d288d9df65a297a3f830c6f
> 100755
> --- a/host/cros_workon
> +++ b/host/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}"
>
>
>
>
>

Powered by Google App Engine
This is Rietveld 408576698