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 flags #38

Closed BebeSparkelSparkel closed 1 year ago

BebeSparkelSparkel commented 3 years ago

do not pull before #35

Allows multiple flag keys to be specified for the same flag handler like the example extended and shortened flags ~~flag and ~f that would both use the same flag handler.

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