Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## 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 `\\--foo` as positional args ## Changed - When given both a `:default` and a `:handler` for a flag, call the handler with the default, rather than just assoc-ing it. - When given a string `:default` and a `:parse` function 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.
- Loading branch information