[
https://issues.apache.org/jira/browse/JOSHUA-221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15428114#comment-15428114
]
Matt Post commented on JOSHUA-221:
----------------------------------
That's done so that the same framework can be used to parse both the config
file and the command line options. The goal is that there are hard-coded
defaults, which can be overridden by parameters in the config file, which in
turn can be overridden by the command line.
I haven't looked into different frameworks, but I do want to be able to
override any config-file parameter from the command line using the same names.
> 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)