Skip to content

Option validations #38

Description

@dmitrypol

I have this in my CLI

  option :date,
    short:      "-d DATE",
    long:       "--date DATE",
    required:   true,
    description:  "date in 20171120 format"

Is there a way to add validation for date (and other fields) to ensure that they follow specific pattern?

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

    Triage: Feature RequestIndicates an issue requesting new functionality.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions