jwaldrip / admiral.cr

A robust DSL for writing command line interfaces written in Crystal.
https://jwaldrip.github.com/admiral.cr
MIT License
135 stars 14 forks source link

Empty arg error handling #15

Closed s0kil closed 4 years ago

s0kil commented 5 years ago

It would be great to have a simple way to handle if no argument is provided. Ex:

define_argument name : String,
  description: "The name of the new project",
  required: false,
  empty: "Please provide the name"