Comments (9)
From docs:
Note when docopt is set to automatically handle -h, --help and --version options, you still need to mention them in doc. Also for your users to know about them.
Anyway, thanks for you thorough feedback with several issues, this probably shows that the documentation is not clear enough. What do you think of docopt overall?
from docopt.
could work, still messing around
sub-commands need some more stuff to get more convenient wrt describing and referring to them
its impossible to scale up to larger tools, but seems fine for scripts and medium sized things
from docopt.
actually docopt was done to scale, take a look at git_example.py:
https://github.com/halst/docopt/blob/master/examples/git_example.py
API ideas welcome.
from docopt.
that’s only medium sized, by large i mean something like the complete interface of something like git/hg
including the possibility to extend it with new commands
i'd avoid to go that way for utterly insane complexity as reason
from docopt.
Actually docopt is going that way :-) but it will remain as simple as it is. One idea is to have a decorator @command
so that you could specify usage patterns in docstrings for each of you internal functions. One that matches invocation will be executed. What do you think of that?
from docopt.
sounds interesting, currently i don't have a big enough use-case to try and see if its any good
from docopt.
but in a few months i'll write a cli for a scm abstraction tool, then i might have a use case
from docopt.
Let me know! I have not build any complex CLI (as git/hg), so I simply don't know what awaits someone when using docopt.
from docopt.
Updated docs: 77dc0ca
from docopt.
Related Issues (20)
- Is docopt / docopt itself still being maintained? HOT 1
- Please upload a wheel package to pypi HOT 6
- get_docopts.sh fails on M1 Monterey 12.6
- Short options in docopt not returning correct values HOT 1
- [FeatureRequest] Allow hash comments in docstring ? HOT 4
- Make new release HOT 3
- try.docopt.org is offline HOT 1
- Dart port? HOT 1
- Make docopt exceptions public
- How to call "python -m mypackage [options]" HOT 1
- Is there some docopt validator? HOT 1
- Why cannot docopt parse args? HOT 3
- Please share wheel file on pypi HOT 1
- Docopt AssertionError
- Having same issues as #516
- Unix-style vs. Windows-style options HOT 2
- Abandonware status of docopt HOT 7
- Why is the docopt website not served through HTTPS?
- Any good reason not to use GitHub releases? HOT 1
- how to implement number argument? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docopt.