Skip to content

Commit

Permalink
Merge pull request #48 from phenoscape/shalsh-patch
Browse files Browse the repository at this point in the history
Return with error in case of invalid command
  • Loading branch information
Shalsh23 authored Sep 9, 2019
2 parents 70aa8c1 + 19ac4ad commit 20b4a79
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/scala/org/phenoscape/owl/build/Command.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ object Command extends App {
case "convert-nexml" => ConvertNeXML.main(commandArgs)
case "assert-negation-hierarchy" => NegationHierarchyAsserter.main(commandArgs)
case "output-evolutionary-profiles" => EvolutionaryProfiles.main(commandArgs)

case "homology-table-to-owl" =>
val homologyArgs = commandArgs.drop(1)
commandArgs(0).toLowerCase match {
case "rea" => HomologyTableWithTaxa.main(homologyArgs)
case "ava" => HomologyTableToOWLVAHM.main(homologyArgs)
case "rolification" => HomologyTableDemoRolification.main(homologyArgs)
}
case _ => println(
case _ => { println(
"""
Valid commands are:
Expand All @@ -46,6 +47,9 @@ homology-table-to-owl
Consult the source code for required parameters.
""")

System.exit(1)
}
}

}

0 comments on commit 20b4a79

Please sign in to comment.