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
10c474fa
Commit
10c474fa
authored
Oct 07, 2014
by
bow
Browse files
Update retrieveCommand function
parent
1de25c35
Changes
1
Hide whitespace changes
Inline
Side-by-side
biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/BiopetExecutable.scala
View file @
10c474fa
...
...
@@ -75,13 +75,12 @@ object BiopetExecutable {
System
.
exit
(
1
)
}
def
retrieveCommand
(
q
:
String
,
cl
:
List
[
MainCommand
])
:
Option
[
MainCommand
]
=
{
for
(
mc
<-
cl
)
{
if
(
q
==
mc
.
name
.
toLowerCase
)
return
Some
(
mc
)
def
retrieveCommand
(
q
:
String
,
cl
:
List
[
MainCommand
])
:
Option
[
MainCommand
]
=
cl
match
{
case
head
::
tail
if
head
.
name
.
toLowerCase
==
q
=>
Some
(
head
)
case
Nil
=>
None
case
head
::
tail
=>
retrieveCommand
(
q
,
tail
)
}
None
}
args
match
{
case
Array
(
"pipeline"
,
pipelineName
,
pipelineArgs
@
_
*)
=>
...
...
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