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

Problem initializing default value for flag from code #26

Open marghidanu opened 3 years ago

marghidanu commented 3 years ago

Doing this in the code:

    define_flag context : String,
      description: "",
      default: Dir.current,
      short: x

Shows up in the terminal like this:

  --context, -x (default: Dir.current)
Nicolab commented 3 years ago

Hello,

Same here. Have you found a solution or a work around?