Skip to content

Commit

Permalink
PR #632 from me: ch-test: accept long options with arg separated by e…
Browse files Browse the repository at this point in the history
…quals
  • Loading branch information
reidpr committed Feb 13, 2020
1 parent b7f55a5 commit 9a353e0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions bin/ch-test
Expand Up @@ -510,6 +510,10 @@ while [[ $# -gt 0 ]]; do
require_unset builder
builder=$1; shift
;;
--builder=*)
require_unset builder
builder=${opt#*=}
;;
--dry-run)
dry=true
;;
Expand All @@ -520,22 +524,43 @@ while [[ $# -gt 0 ]]; do
require_unset imgdir
imgdir=$1; shift
;;
--img-dir=*)
require_unset imgdir
imgdir=${opt#*=}
;;
--pack-dir)
require_unset tardir
tardir=$1; shift
;;
--pack-dir=*)
require_unset tardir
tardir=${opt#*=}
;;
--pedantic)
pedantic=$1; shift
;;
--pedantic=*)
pedantic=${opt#*=}
;;
--perm-dir)
use_sudo=yes
permdirs+=("$1"); shift
;;
--perm-dir=*)
use_sudo=yes
permdirs+=("${opt#*=}")
;;
-s|--scope)
require_unset scope
scope_check "$1"
scope=$1; shift
;;
--scope=*)
require_unset scope
arg=${opt#*=}
scope_check "$arg"
scope=$arg
;;
--sudo)
use_sudo=yes
;;
Expand Down

0 comments on commit 9a353e0

Please sign in to comment.