Skip to content

Option validations #38

@dmitrypol

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?

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