summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2021-11-12 08:34:18 +0100
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2021-12-23 16:02:09 +0100
commitd862507bcf41a80ecb98493aef5d5bcd7d2a0518 (patch)
tree3284415fff3821dd3601a1bbced79d0733f867c6 /share
parent7c6b253d89cb4e91c2683d150e46da00a6085695 (diff)
downloadspack-d862507bcf41a80ecb98493aef5d5bcd7d2a0518.tar.gz
spack-d862507bcf41a80ecb98493aef5d5bcd7d2a0518.tar.bz2
spack-d862507bcf41a80ecb98493aef5d5bcd7d2a0518.tar.xz
spack-d862507bcf41a80ecb98493aef5d5bcd7d2a0518.zip
Fix overloaded argparse keys (#27379)
Commands should not reuse option names defined in main.
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/spack-completion.bash7
1 files changed, 1 insertions, 6 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index e9022d47bb..fa3ebd3c3e 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -969,12 +969,7 @@ _spack_env_st() {
}
_spack_env_loads() {
- if $list_options
- then
- SPACK_COMPREPLY="-h --help -n --module-set-name -m --module-type --input-only -p --prefix -x --exclude -r --dependencies"
- else
- _environments
- fi
+ SPACK_COMPREPLY="-h --help -n --module-set-name -m --module-type --input-only -p --prefix -x --exclude -r --dependencies"
}
_spack_env_view() {