l3nz / cli-matic

Compact, hands-free [sub]command line parsing library for Clojure.
Eclipse Public License 2.0
364 stars 29 forks source link

Set data types #51

Closed l3nz closed 5 years ago

l3nz commented 5 years ago

Sometimes you have a given set of string values that are the only available options.

We want to:

OPTIONS:
   -k, --kind S*         Kind of mailing: (:Q :Q-REN :Q-UPG)
l3nz commented 5 years ago

We also want to accept the string as a kw :X or just X.

l3nz commented 5 years ago

Also, it would be nice to do a Levenshthein search and return candidates.

l3nz commented 5 years ago

Now sets work effectively. See https://github.com/l3nz/cli-matic/blob/master/examples/sets.clj