From 08e04885c33143b26245530f767cfc97c5f7add0 Mon Sep 17 00:00:00 2001 From: Shalsh Date: Fri, 6 Sep 2019 14:13:43 -0400 Subject: [PATCH 1/3] Return with error in case of invalid command --- src/main/scala/org/phenoscape/owl/build/Command.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/scala/org/phenoscape/owl/build/Command.scala b/src/main/scala/org/phenoscape/owl/build/Command.scala index 38e32b4..ea4fc61 100644 --- a/src/main/scala/org/phenoscape/owl/build/Command.scala +++ b/src/main/scala/org/phenoscape/owl/build/Command.scala @@ -39,6 +39,8 @@ output-evolutionary-profiles Consult the source code for required parameters. """) + + System.exit(1) } } \ No newline at end of file From ad817c99a7ba0a098051845e2451ef9f157ab971 Mon Sep 17 00:00:00 2001 From: Jim Balhoff Date: Fri, 6 Sep 2019 14:17:40 -0400 Subject: [PATCH 2/3] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 292dee1..95e8726 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,4 +3,4 @@ scala: - "2.11.11" - "2.12.4" jdk: - - oraclejdk8 + - openjdk8 From 6eac2fac7b9ce62dfe389604ae23ea3921b79159 Mon Sep 17 00:00:00 2001 From: Shalsh Date: Fri, 6 Sep 2019 14:26:43 -0400 Subject: [PATCH 3/3] Bug fix --- src/main/scala/org/phenoscape/owl/build/Command.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/scala/org/phenoscape/owl/build/Command.scala b/src/main/scala/org/phenoscape/owl/build/Command.scala index ea4fc61..be7ccd2 100644 --- a/src/main/scala/org/phenoscape/owl/build/Command.scala +++ b/src/main/scala/org/phenoscape/owl/build/Command.scala @@ -20,8 +20,9 @@ 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 _ => println( - """ + case _ => { + println( + """ Valid commands are: build-kb @@ -41,6 +42,7 @@ Consult the source code for required parameters. """) System.exit(1) + } } } \ No newline at end of file