Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage help option parameter list is overly verbose #357

Closed
remkop opened this issue Apr 13, 2018 · 0 comments
Closed

Usage help option parameter list is overly verbose #357

remkop opened this issue Apr 13, 2018 · 0 comments

Comments

@remkop
Copy link
Owner

remkop commented Apr 13, 2018

def cli = new CliBuilder(name:'ant',
        header:'Options:')
cli.help('print this message')
cli.logfile(type:File, argName:'file', 'use given file for log')
cli.D(type:Map, argName:'property=value', args: '+', 'use value for given property')
cli.lib(argName:'path', valueSeparator:',', args: '3',
        'comma-separated list of up to 3 paths to search for jars and classes')

Gives usage help:

Usage: ant [-help] [-logfile=<file>] [-lib=<path>[,<path>]... [<path>[,
           <path>]... [<path>[,<path>]...]]]... [-D=<property=value>...]...
Options:
  -D= <property=value>...     use value for given property
      -help                   print this message
      -lib=<path>[,<path>]... [<path>[,<path>]... [<path>[,<path>]...]]
                              comma-separated list of up to 3 paths to search
                                for jars and classes
      -logfile=<file>         use given file for log

There are three repetitions of <path>[,<path>]... which is confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant