Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Pmodules
buildblocks
Commits
538b97bc
Commit
538b97bc
authored
Sep 29, 2015
by
gsell
Browse files
Merge branch 'master' of gitorious.psi.ch:pmodules/src
parents
2d928c5e
031c6dd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
Bootstrap/Pmodules/bash
Bootstrap/Pmodules/bash
+2
-0
Bootstrap/Pmodules/modulecmd.bash.in
Bootstrap/Pmodules/modulecmd.bash.in
+8
-1
No files found.
Bootstrap/Pmodules/bash
View file @
538b97bc
...
...
@@ -32,6 +32,8 @@ module() {
[[
${#
args
[@]
}
==
0
]]
&&
args+
=(
'help'
)
[[
${#
args
[@]
}
==
1
]]
&&
args+
=(
'--'
)
# we have to eval here, otherwise we cannot do something like
# $ module load gcc/5.2.0 openmpi/1.8.8 hdf5/1.8.15
local
-i
i
=
1
for
((
i
=
1
;
i <
${#
args
[@]
}
;
i++
))
;
do
eval
$(
"
${
modulecmd
}
"
bash
"
${
args
[0]
}
"
"
${
switches
[@]
}
"
"
${
args
[i]
}
"
)
...
...
Bootstrap/Pmodules/modulecmd.bash.in
View file @
538b97bc
...
...
@@ -1485,12 +1485,19 @@ subcommand_search() {
#
subcommand_help
()
{
local
opts
=
''
opts
=
$(
pmodules::get_options
-
-
''
"
$@
"
)
||
usage
opts
=
$(
pmodules::get_options
-
o
HV
\?
-l
version
-l
help
--
"
$@
"
)
||
usage
eval set
--
"
${
opts
}
"
local
arg
=
''
while
((
$#
>
0
))
;
do
case
$1
in
-[hH]
|
-
\?
|
--help
)
usage
;;
-V
|
--version
)
print_version
std::die 1
;;
--
)
:
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment