Skip to content

Validatable option parameters #7

Description

@grkvlt

The parameters for an option should be validatable (beyond the allowed options property). This could be done by accepting a class name for a Predicate which tests if they are acceptable. Some standard predicates could allow things like regular expressions. For example:

@Option(name = "-v", validator = CheckValid.class)
String v;

Activity

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

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