diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 57bd58e..e5c9f2e 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -60,11 +60,29 @@ declare -A Help declare -r pmodules_config_file="${PMODULES_ROOT}/${PMODULES_CONFIG_DIR}/Pmodules.conf" +# the following settings are used if the Pmodules.conf is not available + +# set groups which should be available after initialization +declare -- DefaultGroups='Tools Programming' + +# define available release stages +declare -- ReleaseStages=':unstable:stable:deprecated:' + +# set releases which should be available after initialization +declare -- DefaultReleaseStages='stable' + +# In the dictionary Help we store the help text of each single command +# and for displaying the version. + +# initialize help text of 'module --version' Help['version']=" Pmodules @PMODULES_VERSION@ using Tcl Environment Modules @MODULES_VERSION@ Copyright GNU GPL v2 " +# +# display help text for command given in $1 +# print_help() { echo -e "${Help[$1]}" 1>&2 std::die 1