Commit 10c474fa authored by bow's avatar bow
Browse files

Update retrieveCommand function

parent 1de25c35
...@@ -75,13 +75,12 @@ object BiopetExecutable { ...@@ -75,13 +75,12 @@ object BiopetExecutable {
System.exit(1) System.exit(1)
} }
def retrieveCommand(q: String, cl: List[MainCommand]): Option[MainCommand] = { def retrieveCommand(q: String, cl: List[MainCommand]): Option[MainCommand] =
for (mc <- cl) { cl match {
if (q == mc.name.toLowerCase) case head :: tail if head.name.toLowerCase == q => Some(head)
return Some(mc) case Nil => None
case head :: tail => retrieveCommand(q, tail)
} }
None
}
args match { args match {
case Array("pipeline", pipelineName, pipelineArgs @ _*) => case Array("pipeline", pipelineName, pipelineArgs @ _*) =>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment