diff options
Diffstat (limited to 'share/spack/templates/modules')
-rw-r--r-- | share/spack/templates/modules/modulefile.lua | 4 | ||||
-rw-r--r-- | share/spack/templates/modules/modulefile.tcl | 10 |
2 files changed, 11 insertions, 3 deletions
diff --git a/share/spack/templates/modules/modulefile.lua b/share/spack/templates/modules/modulefile.lua index 8a8329ecd1..42ef9e5fd1 100644 --- a/share/spack/templates/modules/modulefile.lua +++ b/share/spack/templates/modules/modulefile.lua @@ -15,7 +15,11 @@ whatis([[Short description : {{ short_description }}]]) whatis([[Configure options : {{ configure_options }}]]) {% endif %} +help([[Name : {{ spec.name }}]]) +help([[Version: {{ spec.version }}]]) +help([[Target : {{ spec.target }}]]) {% if long_description %} +help() help([[{{ long_description| textwrap(72)| join() }}]]) {% endif %} {% endblock %} diff --git a/share/spack/templates/modules/modulefile.tcl b/share/spack/templates/modules/modulefile.tcl index 5ea976fbdd..935d1df72d 100644 --- a/share/spack/templates/modules/modulefile.tcl +++ b/share/spack/templates/modules/modulefile.tcl @@ -14,11 +14,15 @@ module-whatis "{{ short_description }}" {% endif %} -{% if long_description %} proc ModulesHelp { } { -{{ long_description| textwrap(72)| quote()| prepend_to_line('puts stderr ')| join() }} -} + puts stderr "Name : {{ spec.name }}" + puts stderr "Version: {{ spec.version }}" + puts stderr "Target : {{ spec.target }}" +{% if long_description %} + puts stderr "" +{{ long_description| textwrap(72)| quote()| prepend_to_line(' puts stderr ')| join() }} {% endif %} +} {% endblock %} {% block autoloads %} |