l3nz / cli-matic

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

Spec on options asserts making optional arguments forced to be present #105

Closed gaberger closed 4 years ago

gaberger commented 4 years ago

any

[ Please specify which version of cli-matic you're using.]

JVM

[ Please specify which platform you are using cli-matic on, like JVM or JS and which version ]

When applying :spec on option forces option to be always present as the assert fails when empty. Should this be only applied when :default is set or :default present?

[ Please provide a short and to the point description of the problem ]

repro

[ Please provide a minimal working reproduction of the problem ]

expected behavior

[ What is the behavior you expected to see from clj-matic? Please provide a minimal working example ]

actual behavior

[ What is the actual behavior of clj-matic? ]

l3nz commented 4 years ago

Fixed in upcoming 0.4.2