(unknown-opts passed knowns)
Takes a set of passed opt keys and known opt keys and for each
unknown opt key returns a vector of the key and its (potentially
nil) suggestion.
Source
(defn unknown-opts
"Takes a set of passed opt keys and known opt keys and for each
unknown opt key returns a vector of the key and its (potentially
nil) suggestion."
[passed knowns]
{:pre [(set? passed) (set? knowns)]}
(for [unknown (set/difference passed knowns)]
[unknown (some-> (suggestion 3 (str unknown) (map str knowns))
(subs 1)
keyword)]))