l3nz / cli-matic

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

[Ftr] Conforming values to a canonical format #112

Open l3nz opened 4 years ago

l3nz commented 4 years ago

Is your feature request related to a problem? Please describe.

I am always frustrated when something could be done more naturally, especially on a CLI. Say that we have a field --date 2020-08-07. If we are in 2020, maybe --date 08-07 could be easier. It looks like spec can offer ways to conform values: https://clojureverse.org/t/clojure-spec-conforming-values/1747 - it could be worthwhile do add this to our spec validation.

Describe the solution you'd like

Investigate conform with the point of being able to conform multiple accepted values into one canonical representation to be passed to the :runs function.