docopt-ng icon indicating copy to clipboard operation
docopt-ng copied to clipboard

Humane command line arguments parser. Now with maintenance, typehints, and complete test coverage.

Results 28 docopt-ng issues
Sort by recently updated
recently updated
newest added

I'm going to have a crack at making the error messages a little more user-friendly, to resolve #5. Especially the `Warning: found unmatched (duplicate?) arguments [Argument(None, '.\\10. PowerShell.ps1')]` that occurs...

This is my proposal to fix #33. (With the assumption that compatibility with docopt is a goal of docopt-ng.) This PR adds two new functions, `parse_docstring_sections()` and `parse_options()`; and uses...

Currently only `DocoptTestException` is reported, no info on the error is shown if any other error is raised during a `testcases.docopt` test. This change delegates to the default `pytest.Item` error...

I've got an old CLI program which uses OG docopt. I'm giving it a bit of minor TLC to refresh the tooling, and I tried switching to docopt-ng, but -ng...

### Description Using `docopt` for building utilities with relatively wide range of options is pretty limited because of a huge performance penalty. Namely, a combinatorial explosion may happen in the...

enhancement
help wanted

This PR makes argument validation easier by parsing argument types and making them accessible, if provided in the docstring. E.g. merging this Pull request makes this possible: ```python """Some stuff...

updates: - [github.com/pycqa/flake8: 4.0.1 → 5.0.4](https://github.com/pycqa/flake8/compare/4.0.1...5.0.4) - [github.com/psf/black: 22.3.0 → 22.6.0](https://github.com/psf/black/compare/22.3.0...22.6.0)

If you install ```pipenv install pipreqs pip-upgrader docopt-ng``` Which sometimes happens, you can't put everything into system or pipx. Then apps use the wrong docopt. ``` $ python >>> import...

Not seeing any references to an actual docopt formal grammar yet, I am writing a PEG grammar for use in Python with Tatsu (https://tatsu.readthedocs.io). I am hopeful that it will...