mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
doc: desc --message module-forbid option in NEWS/modulefile(4)
This commit is contained in:
3
NEWS.rst
3
NEWS.rst
@@ -140,6 +140,9 @@ Modules 4.6.0 (not yet released)
|
||||
:mfcmd:`module-forbid` modulefile commands to ignore hiding or forbidding
|
||||
definition respectively after and before a specified date time. Accepted
|
||||
date time format is ``YYYY-MM-DD[THH:MM]``.
|
||||
* Add ``--message`` option to :mfcmd:`module-forbid` modulefile command to
|
||||
supplement the error message obtained when trying to evaluate a forbidden
|
||||
module.
|
||||
|
||||
.. _GNU configuration recommendations: https://www.gnu.org/prep/standards/html_node/Configuration.html
|
||||
|
||||
|
||||
@@ -240,7 +240,7 @@ the *modulefile* is being loaded.
|
||||
|
||||
* another *modulefile* alias
|
||||
|
||||
.. mfcmd:: module-forbid [--after datetime] [--before datetime] [--not-user {user...}] [--not-group {group...}] modulefile...
|
||||
.. mfcmd:: module-forbid [--after datetime] [--before datetime] [--not-user {user...}] [--not-group {group...}] [--message {text message}] modulefile...
|
||||
|
||||
Forbid use of *modulefile*. An error is obtained when trying to evaluate a
|
||||
forbidden module. This command should be placed in one of the
|
||||
@@ -260,6 +260,9 @@ the *modulefile* is being loaded.
|
||||
specified. When both options are set, forbidding is not applied if a match is
|
||||
found for ``--not-user`` or ``--not-group``.
|
||||
|
||||
Error message returned when trying to evaluate a forbidden module can be
|
||||
supplemented with the *text message* set through ``--message`` option.
|
||||
|
||||
If a :mfcmd:`module-forbid` command applies to a *modulefile* also targeted
|
||||
by a :mfcmd:`module-hide --hard<module-hide>` command, this module is
|
||||
unveiled when precisely named to return an access error.
|
||||
|
||||
Reference in New Issue
Block a user