mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-27 18:13:08 +02:00
modulecmd: set defaults for DefaultGroups, etc
- defaults are set for DefaultsGroups, DefaultReleaseStages and ReleaseStages
This commit is contained 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
|
||||
|
||||
Reference in New Issue
Block a user