spack versions: only list safe versions (#10004)

* spack versions: only list safe versions
* Add unit tests for spack versions -s
This commit is contained in:
Adam J. Stewart
2019-01-10 02:32:47 -06:00
committed by Todd Gamblin
parent 450b0e3059
commit 72a41a4918
3 changed files with 28 additions and 11 deletions

View File

@@ -1181,7 +1181,7 @@ function _spack_use {
function _spack_versions {
if $list_options
then
compgen -W "-h --help" -- "$cur"
compgen -W "-h --help -s --safe-only" -- "$cur"
else
compgen -W "$(_all_packages)" -- "$cur"
fi