docopt
docopt copied to clipboard
This project is no longer maintained. Please see https://github.com/jazzband/docopt-ng
I've found that no code has been submitted to docopt's code repository in the last three years, and there are a lot of issues left unaddressed, so I wonder if...
A parsing expression grammar, EBNF or something, even if it only represents a simplified version of docopt, would be greatly helpful for implementing docopt in a language like [Factor](https://github.com/factor/factor) which...
``` Usage: script.py [foo|bar [--add|--remove|--resend]] ``` correctly throws exception on "script.py foo --add" ...which is what I want (only bar should have options) HOWEVER, ``` Usage: script.py [FOO|BAR [--add|--remove|--resend]] ```...
``` usage: hello-world [options] destroy hello-world -o create hello-world crash -t Options: -o one -t two -a all -n none ``` Works: `-a destroy` Works: `-n destroy` Does not work:...
# Implementation of Pattern Groups ... a solution for medium-sized interfaces, when subparsers are an overkill, but interface is still getting too large for comfort. ## Problem Consider this not-so-much...
Hi, I have the following docot: ``` mytool Usage: mytool generate [options] mytool -h | --help mytool -d | --debug Options: -h --help Show this screen. -d --debug Enable debug...
docopt is nice and beautiful. however, I've been puzzled several times when I passed wrong arguments to it: it only raises ``DocoptExit`` error almost every time, giving me little to...
If I have multiple commands with the same option, for example ``` app.py foo [--option=] app.py bar [--option=] Options: --option Something something [default: 42] ``` how do I specify that...
I'm getting the error, but think there shouldn't be an error. Perhaps the parser is trying too hard? ``` Usage: {0} groups (-a | --all | -o ) [-t ]...
Fixes https://github.com/docopt/docopt/issues/483 See https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent