[ https://issues.apache.org/jira/browse/JOSHUA-221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15427143#comment-15427143 ]
Lewis John McGibbney commented on JOSHUA-221: --------------------------------------------- Either that or commons-cli. The latter APi is very intuitive I think and I have used it in many projects. > ArrayIndexOutOfBoundsException when passing arguments to JoshuaDecoder.main > --------------------------------------------------------------------------- > > Key: JOSHUA-221 > URL: https://issues.apache.org/jira/browse/JOSHUA-221 > Project: Joshua > Issue Type: Bug > Reporter: Lewis John McGibbney > Fix For: 6.2 > > > {code} > lmcgibbn@LMC-032857 /usr/local/joshua(master) $ java -jar class/joshua.jar > -version > Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2 > at joshua.decoder.ArgsParser.<init>(ArgsParser.java:43) > at joshua.decoder.JoshuaDecoder.main(JoshuaDecoder.java:30) > lmcgibbn@LMC-032857 /usr/local/joshua(master) $ java -jar class/joshua.jar > -version -v > Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2 > at joshua.decoder.ArgsParser.<init>(ArgsParser.java:43) > at joshua.decoder.JoshuaDecoder.main(JoshuaDecoder.java:30) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)