Fix overloaded argparse keys (#27379)

Commands should not reuse option names defined in main.
This commit is contained in:
Harmen Stoppels
2021-11-12 08:34:18 +01:00
committed by GitHub
parent 11f6aac1e3
commit 9637ed05f5
6 changed files with 15 additions and 21 deletions

View File

@@ -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() {