commander-cli icon indicating copy to clipboard operation
commander-cli copied to clipboard

multiple opts

Open BebeSparkelSparkel opened this issue 3 years ago • 0 comments

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.

BebeSparkelSparkel avatar Dec 28 '20 21:12 BebeSparkelSparkel