modulecmd: set defaults for DefaultGroups, etc

- defaults are set for DefaultsGroups, DefaultReleaseStages and ReleaseStages
This commit is contained in:
2021-06-09 09:58:47 +02:00
parent 84a04aaebe
commit 49aa32f4df
+18
View File
@@ -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