Skip to content

Commit 740af0d

Browse files
Avoid error when using composer behat -- --help (#166)
1 parent c606e43 commit 740af0d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/run-behat-tests

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ then
1313
exit 1;
1414
fi
1515

16+
if [[ "$@" == *"--help"* ]]; then
17+
vendor/bin/behat "$@"
18+
ret=$?
19+
exit $ret
20+
fi
21+
1622
# Turn WP_VERSION into an actual number to make sure our tags work correctly.
1723
if [ "${WP_VERSION-latest}" = "latest" ]; then
1824
export WP_VERSION=$(curl -s https://api.wordpress.org/core/version-check/1.7/ | jq -r ".offers[0].current")

0 commit comments

Comments
 (0)