Skip to content

Commit

Permalink
Support -d DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
kana committed Mar 25, 2015
1 parent 5a4d82a commit bf44a61
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bin/prove-vspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,20 @@ vim_args=()



error()
{
echo "$@" >&2
exit 1
}

usage()
{
cat <<END >&2
Usage: $0 [options] [files or directories]
Options:
-d DIR Use also DIR as a part of 'runtimepath' to run *.vim tests.
Can be specified multiple times.
-h, --help Display this help and exit.
END
exit 1
Expand All @@ -48,6 +56,11 @@ END
while [[ $# -ge 1 ]]
do
case "$1" in
-d)
[[ $# -lt 2 ]] && error "Option $1 requires a value"
dep_dirs+=("$2")
shift 2
;;
-h|--help)
usage
;;
Expand Down

0 comments on commit bf44a61

Please sign in to comment.