You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should make it simpler to restructure the current awkward [ONLY APPLIED IF USING DEPENDENCY_CHECK STRATEGY] arguments to their own section in usage help
When running via -X or -T:
- args are now validated
- benefits from rich bb cli coercion support
- usage help shows using keyword :arg syntax
When running via -M:
- preserved existing behaviour
- support more coercions
- usage help shows using cli -arg syntax
General:
- Narrower, easier to read usage help
- Options relating only to dependency-check strategy are now grouped
under their own heading
- Some rewording/rewriting of descriptions for clarity
- Command line error styled in red for visibility
- Support for aligning multi-line argument descriptions
- File options fail fast if file does not exist
- More coercions to keywords happen at command parse time instead of
within code. Code adjusted appropriately.
Closesclj-holmes#77
Currently
Clj-watson employs cli-matic to specify and parse its command line options.
But..
Cli-matic is good, but I think babashka.cli will likely be a better fit.
They both support specifying your command line, but babashka.cli is more of a toolbox than just a DSL and offers more flexibility:
[no-]
variant documented in usage. Something we'd like to do for Consider behaviour when no nvd api key specified #67.[ONLY APPLIED IF USING DEPENDENCY_CHECK STRATEGY]
arguments to their own section in usage helpclj-watson.properties
on classpath seems a bit odd #70 (comment)Consideration
Clj-watson explicitly supports clojure tool
-T
usage.At the very least, we need to retain any existing
-T
niceties.See #67 (comment)
Next Steps
I'll explore this idea locally, and if it all is good, follow up with a PR.
The text was updated successfully, but these errors were encountered: