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/22 07:59:00 UTC

[jira] [Commented] (GROOVY-8592) Migrate command line tools to picocli version of CliBuilder

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

Remko Popma commented on GROOVY-8592:
-------------------------------------

h4. Switch consolidation

# The {{groovydoc}} tool currently has {{\-help}} and {{\--help}} options for help, but no {{\-h}} option. I propose to add a {{\-h}} option.
# Also, {{groovydoc}} has a {{\--version}} long option but no short option. Should we add a short option and should it be uppercase {{\-V}} or lowercase {{\-v}}?
# The {{groovyConsole}} tool currently has uppercase {{\-V}} and {{\--version}} options. Leave this as is or consolidate with {{groovy}}, {{groovyc}} and {{grape}}, which use lowercase {{\-v}}?
# The {{groovysh}} tool currently has uppercase {{\-V}} and {{\--version}} options (and lowercase {{\-v}} for {{\--verbose}} ). Leave this as is or consolidate with {{groovy}}, {{groovyc}} and {{grape}}, which use lowercase {{\-v}} for version?

> Migrate command line tools to picocli version of CliBuilder
> -----------------------------------------------------------
>
>                 Key: GROOVY-8592
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8592
>             Project: Groovy
>          Issue Type: Improvement
>          Components: command line processing
>    Affects Versions: 2.5.0-rc-3
>            Reporter: Remko Popma
>            Priority: Major
>
> The following command line tools use either {{groovy.cli.commons.CliBuilder}} or implicitly use {{groovy.util.CliBuilder}} which delegates to the commons-cli version of CliBuilder:
> * groovyConsole (groovy.ui.Console)
> * groovydoc (org.codehaus.groovy.tools.groovydoc.Main)
> * groovysh (org.codehaus.groovy.tools.shell.Main)
> This ticket proposes to use {{groovy.cli.picocli.CliBuilder}} instead, so that all command line tools in the {{bin}} directory of the Groovy distribution show usage help in ANSI colors.



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