Skip to content

Commit

Permalink
print usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpoelen committed Sep 6, 2018
1 parent 28f8d20 commit 39db68c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<description>Discover, cache and check species interaction data</description>

<properties>
<globi.version>0.9.20</globi.version>
<globi.version>0.9.21</globi.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,25 @@ public static void run(JCommander actual) {
}
}


public static void run(String[] args) throws Throwable {
JCommander jc = new CmdLine().buildCommander();
try {
jc.parse(args);
CmdLine.run(jc.getCommands().get(jc.getParsedCommand()));
} catch (Throwable ex) {
LOG.error("unexpected exception", ex);
throw ex;
} catch (Throwable th) {
StringBuilder out = new StringBuilder();
jc.usage(out);
System.err.append(out.toString());
throw th;
}

}

public class CommandMain implements Runnable {

@Override
public void run() {

}
}

Expand All @@ -52,5 +55,4 @@ JCommander buildCommander() {
.build();
}


}

0 comments on commit 39db68c

Please sign in to comment.