Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
b8905325
Commit
b8905325
authored
Nov 10, 2014
by
Peter van 't Hof
Browse files
Fix typo and added exception
parent
fbff5f3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/BiopetExecutable.scala
View file @
b8905325
...
...
@@ -85,16 +85,19 @@ object BiopetExecutable extends Logging {
return
command
.
get
}
// Read config files
for
(
t
<-
0
until
args
.
size
)
{
if
(
args
(
t
)
==
"-config"
||
args
(
t
)
==
"--config_ile"
)
Config
.
global
.
loadConfigFile
(
new
File
(
args
(
t
+
1
)))
}
args
match
{
case
Array
(
"version"
)
=>
{
println
(
"version: "
+
getVersion
)
}
case
Array
(
module
,
name
,
passArgs
@
_
*)
=>
{
// Reading config files
val
argsSize
=
passArgs
.
size
for
(
t
<-
0
until
argsSize
)
{
if
(
passArgs
(
t
)
==
"-config"
||
args
(
t
)
==
"--config_file"
)
{
if
(
t
>=
argsSize
)
throw
new
IllegalStateException
(
"-config needs a value"
)
Config
.
global
.
loadConfigFile
(
new
File
(
passArgs
(
t
+
1
)))
}
}
getCommand
(
module
,
name
).
main
(
passArgs
.
toArray
)
}
case
Array
(
module
)
=>
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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