Skip to content

Incorrect synopsis for char[] options #1834

@rsenden

Description

@rsenden

I have some password options defined like the following:

@Option(names = {"--password", "-p"}, interactive = true, echo = false, arity = "0..1", required = true)
@Getter private char[] password;

Likely due to this option being defined as an array, the command synopsis in help output and man page show this as a repeatable option:

-p[=<password>] [-p[=<password>]]...

This is confusing for users, as it makes them think they can specify multiple passwords, whereas in reality they can only specify a single password consisting of multiple characters.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions