Replies: 1 comment
-
@jcf It is very common indeed, but perhaps there's other flags like You can check for these special flags like so: user=> (try (cli/parse-args ["--help"] {:require [:dude]}) (catch Exception e (:help (:opts (ex-data e)))))
true |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Presently, when a CLI spec includes any validation, one must provide required options before help output is returned. Perhaps I'm missing something, but the docs appear to suggest this is the current behaviour, too.
In my opinion, this is a poor experience for anyone wanting to know how a CLI works. Instead, they should see the full help output.
Beta Was this translation helpful? Give feedback.
All reactions