Skip to content

Commit 0a8c89b

Browse files
committed
doc: --tag update tag list if mod is loaded already
1 parent 8eec2bd commit 0a8c89b

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

doc/source/module.rst

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,9 @@ switches are accepted:
427427
:subcmd:`try-load` sub-commands, apply LIST of module tags to the loading
428428
*modulefile*. *LIST* corresponds to the concatenation of multiple tags
429429
separated by colon character (``:``). *LIST* should not contain tags
430-
inherited from *modulefile* state or from other modulefile commands.
430+
inherited from *modulefile* state or from other modulefile commands. If
431+
module is already loaded, tags from *LIST* are added to the list of tags
432+
already applied to this module.
431433

432434
.. only:: html
433435

@@ -1439,10 +1441,9 @@ Module Sub-Commands
14391441
modulefile alias. It may also leverage a specific syntax to finely select
14401442
module version (see `Advanced module version specifiers`_ section below).
14411443

1442-
The ``--tag`` option accepts a list of module tags to apply to *modulefile*
1443-
once loaded. *taglist* corresponds to the concatenation of multiple tags
1444-
separated by colon character. *taglist* should not contain tags inherited
1445-
from *modulefile* state or from other modulefile commands.
1444+
The :option:`--tag` option accepts a list of module tags to apply to
1445+
*modulefile* once loaded. If module is already loaded, tags from *taglist*
1446+
are added to the list of tags already applied to this module.
14461447

14471448
.. only:: html
14481449

@@ -1475,10 +1476,9 @@ Module Sub-Commands
14751476
modulefile alias. It may also leverage a specific syntax to finely select
14761477
module version (see `Advanced module version specifiers`_ section below).
14771478

1478-
The ``--tag`` option accepts a list of module tags to apply to *modulefile*
1479-
once loaded. *taglist* corresponds to the concatenation of multiple tags
1480-
separated by colon character. *taglist* should not contain tags inherited
1481-
from *modulefile* state or from other modulefile commands.
1479+
The :option:`--tag` option accepts a list of module tags to apply to
1480+
*modulefile* once loaded. If module is already loaded, tags from *taglist*
1481+
are added to the list of tags already applied to this module.
14821482

14831483
.. only:: html
14841484

@@ -1786,10 +1786,9 @@ Module Sub-Commands
17861786
modulefile alias. It may also leverage a specific syntax to finely select
17871787
module version (see `Advanced module version specifiers`_ section below).
17881788

1789-
The ``--tag`` option accepts a list of module tags to apply to *modulefile2*
1790-
once loaded. *taglist* corresponds to the concatenation of multiple tags
1791-
separated by colon character. *taglist* should not contain tags inherited
1792-
from *modulefile* state or from other modulefile commands.
1789+
The :option:`--tag` option accepts a list of module tags to apply to
1790+
*modulefile* once loaded. If module is already loaded, tags from *taglist*
1791+
are added to the list of tags already applied to this module.
17931792

17941793
.. only:: html
17951794

@@ -1841,10 +1840,9 @@ Module Sub-Commands
18411840
modulefile alias. It may also leverage a specific syntax to finely select
18421841
module version (see `Advanced module version specifiers`_ section below).
18431842

1844-
The ``--tag`` option accepts a list of module tags to apply to *modulefile*
1845-
once loaded. *taglist* corresponds to the concatenation of multiple tags
1846-
separated by colon character. *taglist* should not contain tags inherited
1847-
from *modulefile* state or from other modulefile commands.
1843+
The :option:`--tag` option accepts a list of module tags to apply to
1844+
*modulefile* once loaded. If module is already loaded, tags from *taglist*
1845+
are added to the list of tags already applied to this module.
18481846

18491847
.. only:: html
18501848

doc/source/modulefile.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ the *modulefile* is being loaded.
8181
once loaded in addition to the ``keep-loaded`` tag. *taglist* corresponds to
8282
the concatenation of multiple tags separated by colon character. *taglist*
8383
should not contain tags inherited from *modulefile* state or from other
84-
modulefile commands.
84+
modulefile commands. If module is already loaded, tags from *taglist* are
85+
added to the list of tags already applied to this module.
8586

8687
.. only:: html
8788

@@ -347,7 +348,8 @@ the *modulefile* is being loaded.
347348
the ``--tag`` option to apply specified tags to *modulefile* once loaded.
348349
Option accepts a concatenation of multiple module tags separated by colon
349350
character. *taglist* should not contain tags inherited from *modulefile*
350-
state or from other modulefile commands.
351+
state or from other modulefile commands. If module is already loaded, tags
352+
from *taglist* are added to the list of tags already applied to this module.
351353

352354
Command line switches :option:`--auto`, :option:`--no-auto` and
353355
:option:`--force` are ignored when passed to a :mfcmd:`module` command set in
@@ -888,7 +890,9 @@ the *modulefile* is being loaded.
888890
The ``--tag`` option accepts a list of module tags to apply to *modulefile*
889891
once loaded. *taglist* corresponds to the concatenation of multiple tags
890892
separated by colon character. *taglist* should not contain tags inherited
891-
from *modulefile* state or from other modulefile commands.
893+
from *modulefile* state or from other modulefile commands. If module is
894+
already loaded, tags from *taglist* are added to the list of tags already
895+
applied to this module.
892896

893897
.. only:: html
894898

0 commit comments

Comments
 (0)