diff --git a/.hunspell.en.dic b/.hunspell.en.dic index b5e75815..b0d4bc50 100644 --- a/.hunspell.en.dic +++ b/.hunspell.en.dic @@ -1215,3 +1215,4 @@ coc ov readme DCO +dumpname diff --git a/NEWS.rst b/NEWS.rst index d7ef9f51..c4c13ffc 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -43,6 +43,9 @@ Modules 5.6.0 (not yet released) performed with :mfcmd:`module use`, :mfcmd:`append-path` or :mfcmd:`prepend-path` modulefile commands on :subcmd:`avail`, :subcmd:`whatis` and :subcmd:`paths` sub-commands. +* Add :option:`--dumpname` option to report name of current Environment + Modules implementation. Here it returns ``Modules``. This option is also + available on Lmod starting version 8.7.50. .. _Security policy: https://github.com/envmodules/modules/blob/main/SECURITY.md .. _Modules chat room: https://matrix.to/#/#modules:matrix.org diff --git a/doc/source/changes.rst b/doc/source/changes.rst index 2710e317..ea3afee8 100644 --- a/doc/source/changes.rst +++ b/doc/source/changes.rst @@ -835,6 +835,8 @@ The following command line switches appeared on Modules 5. +------------+-----------------------------------------------------------------+ | 5.3 | :option:`--ignore-cache`, :option:`--ignore-user-rc` | +------------+-----------------------------------------------------------------+ +| 5.6 | :option:`--dumpname` | ++------------+-----------------------------------------------------------------+ :option:`--output` diff --git a/doc/source/module.rst b/doc/source/module.rst index 0683e01a..38e9a2dd 100644 --- a/doc/source/module.rst +++ b/doc/source/module.rst @@ -277,6 +277,16 @@ switches are accepted: .. versionadded:: 4.0 +.. option:: --dumpname + + Report the name of the current implementation of the :command:`module` + command. This option returns ``Modules`` for this implementation. The command + then terminates without further processing. + + .. only:: html + + .. versionadded:: 5.6 + .. option:: --force, -f On :subcmd:`load`, :subcmd:`unload`, :subcmd:`switch`, :subcmd:`load-any`,