SamuelSchlesinger / commander-cli

A simple library I wrote to allow me to quickly and easily construct command line interfaces.
MIT License
29 stars 2 forks source link

multiple opts #35

Closed BebeSparkelSparkel closed 1 year ago

BebeSparkelSparkel commented 3 years ago

do not pull before #33

Allows multiple option keys to be specified for the same option handler like the example extended and shortened option keys --abcd <value> and -a <value> that would both send <value> to the same handler.

Does have breaking changes with data Opt :: [Symbol] -> Symbol -> * -> *. Compatibility could possibly be accomplished with a type alias of type Opt (option :: Symbol) (name :: Symbol) = OptMulti '[option] name but I am not sure that this complexity is worth it.