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

Unified Diff: host/cros_workon

Issue 6312176: cros_workon: fix --help to return an exit code of 0 (Closed) Base URL: http://git.chromium.org/git/dev-util.git@master
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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}"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698