Skip to content

Commit

Permalink
Verbose options without equal delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
rockymadden committed Jul 2, 2016
1 parent b1b6546 commit 8dbefb0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ install: | stub
ifeq (${uname}, Darwin)
@$(eval _bindir := $(shell greadlink -f ${bindir}))
@$(eval _etcdir := $(shell greadlink -f ${etcdir}))
@sed -i '' "s|bindir=|bindir=${_bindir}|g" ${bindir}/circleci
@sed -i '' "s|etcdir=|etcdir=${_etcdir}|g" ${bindir}/circleci
@sed -i '' "s|bindir=|bindir=${_bindir}|g" ${bindir}/circleci
@sed -i '' "s|etcdir=|etcdir=${_etcdir}|g" ${bindir}/circleci
else ifeq (${uname}, Linux)
@$(eval _bindir := $(shell readlink -f ${bindir}))
@$(eval _etcdir := $(shell readlink -f ${etcdir}))
Expand Down
24 changes: 11 additions & 13 deletions src/circleci
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,25 @@ function placehold-project() {
while (( "$#" )); do
case "${1}" in
--branch=*) branch=${1/--branch=/''} ; shift ;;
--branch*|-B*) branch=${2} ; shift ; shift ;;
--build=*) build=${1/--build=/''} ; shift ;;
--compact) compact='-c' ; shift ;;
--build*|-b*) build=${2} ; shift ; shift ;;
--compact|-c) compact='-c' ; shift ;;
--filter=*) filter=${1/--filter=/''} ; shift ;;
--monochrome) monochrome='-M' ; shift ;;
--filter*|-f*) filter=${2} ; shift ; shift ;;
--monochrome|-m) monochrome='-M' ; shift ;;
--parameter-key=*) paramkeys+=(${1/--parameter-key=/}) ; shift ;;
--parameter-key*|-K*) paramkeys+=(${2}) ; shift ; shift ;;
--parameter-value=*) paramvals+=(${1/--parameter-value=/}) ; shift ;;
--parameter-value*|-V*) paramvals+=(${2}) ; shift ; shift ;;
--project=*) project=${1/--project=/''} ; shift ;;
--project*|-p*) project=${2} ; shift ; shift ;;
--resolution=*) resolution=${1/--resolution=/''} ; shift ;;
--resolution*|-r*) resolution=${2} ; shift ; shift ;;
--revision=*) revision=${1/--revision=/''} ; shift ;;
--revision*|-R*) revision=${2} ; shift ; shift ;;
--token=*) token=${1/--token=/''} ; shift ;;
-B*) branch=${2} ; shift ; shift ;;
-b*) build=${2} ; shift ; shift ;;
-c) compact='-c' ; shift ;;
-f*) filter=${2} ; shift ; shift ;;
-K*) paramkeys+=(${2}) ; shift ; shift ;;
-m) monochrome='-M' ; shift ;;
-p*) project=${2} ; shift ; shift ;;
-r*) resolution=${2} ; shift ; shift ;;
-R*) revision=${2} ; shift ; shift ;;
-t*) token=${2} ; shift ; shift ;;
-V*) paramvals+=(${2}) ; shift ; shift ;;
--token|-t*) token=${2} ; shift ; shift ;;
--)
case "${cmd}" in
trigger) test -n "${project}" && branch=$(placehold-branch) ;;
Expand Down

0 comments on commit 8dbefb0

Please sign in to comment.