You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/design/hide-or-forbid-modulefile.rst
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -225,13 +225,17 @@ Specification
225
225
- ``--hard``: highest hiding level
226
226
- ``--not-user``: specify a list of users unaffected by hide mechanism
227
227
- ``--not-group``: specify a list of groups whose member are unaffected by hide mechanism
228
+
- ``--user``: specify a list of users specifically affected by hide mechanism
229
+
- ``--group``: specify a list of groups whose member are specifically affected by hide mechanism
228
230
- ``--before``: enables hide mechanism until a given date
229
231
- ``--after``: enables hide mechanism after a given date
230
232
231
233
- ``module-forbid`` accepts options that change its behavior:
232
234
233
235
- ``--not-user``: specify a list of users unaffected by forbid mechanism
234
236
- ``--not-group``: specify a list of groups whose member are unaffected by forbid mechanism
237
+
- ``--user``: specify a list of users specifically affected by forbid mechanism
238
+
- ``--group``: specify a list of groups whose member are specifically affected by forbid mechanism
235
239
- ``--before``: enables forbid mechanism until a given date
236
240
- ``--after``: enables forbid mechanism after a given date
237
241
- ``--message``: supplements error message obtained when trying to evaluate a forbidden module with given text message
@@ -259,12 +263,16 @@ Specification
259
263
260
264
- Unless on very specific cases, where a global rc file defines these hidden/forbidden commands for the full path modules
261
265
262
-
- ``--not-user`` and ``--not-group`` specification is only supported on Unix platform
266
+
- ``--user``, ``--group``, ``--not-user`` and ``--not-group`` specification is only supported on Unix platform
263
267
264
-
- These 2 options raise an error when used on Windows platform
268
+
- These options raise an error when used on Windows platform
265
269
- In which case relative ``module-hide`` or ``module-forbid`` command is made ineffective as well as remaining content of the modulerc script hosting them
266
270
- Error message is clearly seen when trying to load related modules and indicate where to find the erroneous command
267
271
272
+
- ``--user`` and ``--group`` options prevail over ``--not-user`` and ``--not-group`` options
273
+
274
+
- When ``--user`` or ``--group`` is set, exclusion list from ``--not-user`` and ``--not-group`` are ignored
275
+
268
276
- ``--before`` and ``--after`` are also supported by ``module-hide`` to phase-out modules prior to forbid their evaluation
269
277
270
278
- ``--before`` and ``--after`` accept a date time as value
0 commit comments