Releases: lambdaisland/cli
Releases · lambdaisland/cli
v0.7.33
v0.6.30
v0.5.27
v0.4.24
Added
- Bind the options map to
cli/*opts*, for easy access. - Show the default for a flag in the help text.
- Add a docstring to the main entry point (
dispatch) - Bind
*opts*during flag handler execution
Fixed
- Recognize
-and\\--fooas positional args
Changed
- When given both a
:defaultand a:handlerfor a flag, call the handler
with the default, rather than just assoc-ing it. - When given a string
:defaultand a:parsefunction for a flag, run the
default value through the parse function, rather than using it directly. Using
the unparsed string form for the default is preferable over for instance using
a keyword, since it leads to better help text rendering. - Improve and document the processing logic, especially when it comes to
subcommand flags with handler functions.
v0.3.19-alpha
Much expanded and improved version, see README for all details. This is
approaching the envisioned scope for this library.
- take docstring/command from var
:strict?mode:handlerand:middlewareon flags- Much improved help text rendering
- More lenient flag parsing
- Add
:defaultand:parse
v0.2.11-alpha
Added
- Handle named command arguments
- Support
--flag FOOand--flag=<foo>(and--flag <foo>) - Boolean flags count by default, e.g.
-vvv=>{:verbose 3}
Changed
- Command handlers take a single unified map
v0.1.6-alpha
Added
- subcommand handling
- rudimentary flag handling
- help text generation