- Fixup of auto release in Github Actions
- Expose
DocoptExit
in__all__
, let users to raise DocoptExit from their code jazzband#8 - Fix magic with arguments that have a dash jazzband#6
- Add
py.typed
so now users can actuall use mypy with us! https://github.com/jazzband/docopt-ng/commit/de7c861dafb86418da423d4829f389a62c82151a - Migrate to being maintained by Jazzband!
- Migrate to GitHub actions from TravisCI
- Update and tweak many little things in build, testing, and docs
- Complete MyPy typehints - ZERO errors. Required refactoring class implementations, adding typing stubs, but not changing tests. :)
- 100% code coverage. Required the addition of a few tests.
Removed unused codepaths. Tagged typing stubs
pragma: no cover
as they are definitionally exercised.
- Add
magic()
andmagic_docopt()
aliases fordocopt()
allowing easier use of new features.
- "MORE MAGIC"
- First argument is now optional -
docopt()
will look for__doc__
defined in parent scopes. - Dot access is supported on resulting
arguments
object, ignoring angle brackets and leading dashes. more_magic
parameter added todocopt()
defaults False.- If
more_magic
enabled,arguments
variable created and populated in calling scope with results. - If
more_magic
enabled, fuzzy (levenshtein) autocorrect enabled for long-args. - Lots of typehints.
- README moved to Markdown.
- Catch up on ~two years of pull requests.
- Fork docopt to docopt-ng.
- Add levenshtein based autocorrect from string-dist.
- Add better debug / error messages.
- Linting (via black and flake8).
- Bugfixes
- Fix issue #85 which
caused improper handling of
[options]
shortcut if it was present several times.
- New argument
options_first
, disallows interspersing options and arguments. If you supplyoptions_first=True
todocopt
, it will interpret all arguments as positional arguments after first positional argument. - If option with argument could be repeated, its default value will
be interpreted as space-separated list. E.g. with
[default: ./here ./there]
will be interpreted as['./here', './there']
.