Skip to content

Usage help option parameter list is overly verbose #357

@remkop

Description

@remkop
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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions