[
https://issues.apache.org/jira/browse/OPENNLP-556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551078#comment-13551078
]
James Kosin commented on OPENNLP-556:
-------------------------------------
I'm okay with that too.
Just adding a simple line before the full output like:
Parameter '-model-type' not known or correct for usage.
> CLI parser could report the bad parameters and flag them for the user
> ---------------------------------------------------------------------
>
> Key: OPENNLP-556
> URL: https://issues.apache.org/jira/browse/OPENNLP-556
> Project: OpenNLP
> Issue Type: Improvement
> Components: Command Line Interface
> Affects Versions: tools-1.5.1-incubating, tools-1.5.2-incubating,
> tools-1.5.3
> Reporter: James Kosin
> Priority: Minor
>
> A mis-typed parameter can cause the parser to spit out the usage data e.g.:
> -model-type
> instead of the proper:
> -type
> Will cause the CLI to only spit out the usage for the command and not tell
> the user what is likely to be wrong... in this case a mis-typed parameter
> caused the problem.
> Maybe only outputting usage data when no parameters, in most cases, and other
> times outputting the problem or place of the error.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira