Skip to content

v2.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 16 May 13:01
· 6 commits to master since this release
v2.0.0
cc5f1e0

Install/depend on this package using μpkg:

upkg add https://github.com/andsens/docopt.sh/releases/download/v2.0.0/docopt-lib.sh.tar.gz

Major release

This is complete rewrite of the underlying parser for the docopt
language.
docopt.sh now uses docopt-parser to generate an AST.
Error messages are considerably improved, showing (most of the time) what exactly is wrong, outputting the offending line and numbering it. e.g.:

08   --push          Push the new tag and branch upstream
     ~~~~~~
--push is not referenced from the usage section

The bash minification is now more effective, reducing the number of lines (with -n=80) by ~20%.

Some shellcheck warnings have been disabled/fixed, resulting inlined code passing all tests.

Changes since v2.0.0-alpha4:

  • Merge branch 'ft-docopt-parser'
  • Fix bug where --opt=false threw a user error