summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/spack-completion.bash7
1 files changed, 6 insertions, 1 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index c34c954e5e..a5610f5872 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -1696,7 +1696,12 @@ _spack_test_run() {
}
_spack_test_list() {
- SPACK_COMPREPLY="-h --help -a --all"
+ if $list_options
+ then
+ SPACK_COMPREPLY="-h --help -a --all"
+ else
+ SPACK_COMPREPLY=""
+ fi
}
_spack_test_find() {