Repository: yetus Updated Branches: refs/heads/master 6326841d4 -> 5dd5f1db4
YETUS-154. Specifying help option before plugins option hides plugin-specific help messages Signed-off-by: Sean Busbey <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/yetus/repo Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/5dd5f1db Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/5dd5f1db Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/5dd5f1db Branch: refs/heads/master Commit: 5dd5f1db401a20d44ece70c47e34f421a91fbec2 Parents: 6326841 Author: Marco Zuehlke <[email protected]> Authored: Thu Nov 19 01:03:59 2015 +0100 Committer: Sean Busbey <[email protected]> Committed: Wed Nov 18 23:26:02 2015 -0600 ---------------------------------------------------------------------- precommit/core.d/01-common.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/yetus/blob/5dd5f1db/precommit/core.d/01-common.sh ---------------------------------------------------------------------- diff --git a/precommit/core.d/01-common.sh b/precommit/core.d/01-common.sh index 5e7cb60..41e4e63 100755 --- a/precommit/core.d/01-common.sh +++ b/precommit/core.d/01-common.sh @@ -92,6 +92,7 @@ function common_defaults function common_args { declare i + declare showhelp=false for i in "$@"; do case ${i} in @@ -130,8 +131,7 @@ function common_args GREP=${i#*=} ;; --help|-help|-h|help|--h|--\?|-\?|\?) - yetus_usage - exit 0 + showhelp=true ;; --list-plugins) list_plugins @@ -167,6 +167,10 @@ function common_args ;; esac done + if [[ ${showhelp} == true ]]; then + yetus_usage + exit 0 + fi } ## @description List all installed plug-ins, regardless of whether
