Skip to content

Incorrect help message for short options with paramLabel when arity > 1 #181

@remkop

Description

@remkop

This only happens for short options, not when an option has either both a short and a long option or just long options.

The help message looks like this. Note the double = and the missing opening square bracket [ in the options list:

Usage: <main class> [-f[=FILE...]] [-P[=KEY=VALUE...]] 
  -f= =FILE...]               files
  -P= =KEY=VALUE...]          Project properties (key-value pairs)

When a long option is specified, or arity=1, things look okay:

Usage: <main class> [-f=FILE] [-P[=KEY=VALUE...]]
  -f= FILE                    a file
  -P, --properties[=KEY=VALUE...]
                              Project properties (key-value pairs)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions