From 3e3d42c0fc6fa3e991960a2a7ba65d070eb27e57 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Fri, 19 Apr 2013 14:11:40 +0800 Subject: [PATCH] Update bash_completion file --- extra/bash_completion | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/extra/bash_completion b/extra/bash_completion index 2c40a2f..0aedb1c 100644 --- a/extra/bash_completion +++ b/extra/bash_completion @@ -74,8 +74,15 @@ function _moodle() { fi ;; behat) - OPTS="--run --switch-completely --no-javascript --selenium --selenium-verbose" - OPTS="$OPTS $($BIN info -ln)" + if [[ "${PREV}" == "--feature" ]]; then + # Basic autocomplete for --feature, should append a / at the end of directory names. + compopt +o nospace + OPTS="$(compgen -A file $CUR)" + compopt -o nospace + else + OPTS="--run --disable --feature --switch-completely --no-javascript --selenium --selenium-verbose" + OPTS="$OPTS $($BIN info -ln)" + fi ;; check) # Empty options. -- 2.11.0