[
https://issues.apache.org/jira/browse/JOSHUA-221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15428097#comment-15428097
]
John Hewitt commented on JOSHUA-221:
------------------------------------
The current command line parsing scheme writes the options to a temporary
config file and then reads the config file as it otherwise would.
If using Args4J or commons-cli, I think we should consider avoiding this, as it
means we're parsing arguments twice.
> 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)