Comments (1)
It's because of the line between the usage pattern and the options. There is a space in my README source code after the last hash sign, but naturally enough it gets dropped during the translations from reStructedText to HTML or a man page screen. So the grep for ^###
doesn't catch it, and there isn't a blank line after the usage pattern, and docopt doesn't know what to do.
Thanks for bringing this up. I'll fix up the example so it's less fragile to whitespace hijinks.
from docopts.
Related Issues (20)
- opened in error HOT 1
- [FR] return X instead of exit X HOT 8
- get_docopts.sh downloads 32-bit build instead of 64-bit on macOS Catalina HOT 5
- Only the line containing the "Usage:" identifier is parsed on bash 4.4.12 HOT 4
- Terse error message | panic: no fields found in usage (perhaps a spacing error) HOT 2
- --debug flag not working as intended? HOT 2
- docopts adds the `--` token to the position arguments HOT 3
- provide a simpler case $ACTION API through docopts
- Bug in expansion of variable length parameters (when count of parameters == 0) HOT 2
- travis.org seems gone, we need to find something else? HOT 6
- v0.6.4-with-no-mangle-double-dash released pending HOT 1
- get_docopts.sh fails with "unrecognized option '--ignore-missing'" HOT 2
- get_docopts.sh does not support macOS ARM HOT 3
- Create Homebrew tap? HOT 8
- embedded docopts.sh wrapper into docopts binary HOT 5
- Resolution of https://github.com/docopt/docopts/issues/30#issue-447988001 HOT 1
- Reactoring introduce new docopt grammar parser
- docopt_get_values: doesn't handle arguments with whitespaces properly HOT 5
- Separating different positional arguments HOT 1
- Test 24 docopt_get_values fails.
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 docopts.