Skip to content

Allow to specify a list of valid values to an option. #36

@jarrodhroberson

Description

@jarrodhroberson

for example:

@Option(shortName = "f", longName = "format", defaultValue = "csv", validValues = "csv,json,xml", description = "Output File Format")
public Set<String> getFormats();

If it also auto generated an addition to the description like "Output File Format defaultValue=csv valid=[csv,json,xml]" it would go a long way to adding more information with no effort.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions