You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Remko Popma (JIRA)" <ji...@apache.org> on 2018/05/18 15:10:00 UTC

[jira] [Commented] (GROOVY-8589) GrapeMain bugfix: should not show error about missing mandatory args when --help or --version is specified

    [ https://issues.apache.org/jira/browse/GROOVY-8589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16480782#comment-16480782 ] 

Remko Popma commented on GROOVY-8589:
-------------------------------------

PR with fix to follow.

> GrapeMain bugfix: should not show error about missing mandatory args when --help or --version is specified
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-8589
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8589
>             Project: Groovy
>          Issue Type: Task
>          Components: command line processing
>            Reporter: Remko Popma
>            Priority: Major
>
> GROOVY-8577 introduced a bug: the parser incorrectly complains about missing mandatory options when the user specified --help or --version. For example:
> {code}
> java -cp ... org.codehaus.groovy.tools.GrapeMain install --version
> {code}
> ... gives the following output:
> {code}
> Missing required parameters: <group>, <module>
> Installs a particular grape
> Usage: grape install [-hv] <group> <module> [<version>] [<classifier>]
> Installs the specified groovy module or maven artifact. If a version is
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)