modules
modules copied to clipboard
Show available variants for modules with `module avail <modname>`
Is your feature request related to a problem? Please describe.
Currently one cannot easily see the available variants for modules, doing module avail
will only list the modules but not the available variants for the module.
$> module avail mpi/4.0.3
...
mpi/4.0.3
...
$> module show mpi/4.0.3
...
variant --default gcc/9.3.0 compiler gcc/8.4.0 gcc/9.3.0 gcc/10.1.0 intel/2019u5 intel/2020u1
variant --default i4 isize i4 i8
...
however, users that are not familiar with env-modules don't figure this out.
Describe the solution you'd like
I think there should be two scenarios covered:
-
module avail --variants
which would forcefully show all variants for all modules (very verbose but some users might find it useful).
In this case it might be better to force all listed modules in a list-like format
mpi/4.0.3
compiler = [ 1, 2, 3, <line-break>
4, 5 ]
Just doing module avail
should not do this!
- When asking for specific modules
module avail mpi
it should default to show the variants. Since there may be many variants formatting might be problematic, but...