Vladimir Keleshev
Vladimir Keleshev
Do you think that `docopt.exit` is useful? Not sure about "missing operand(s)" either.
1. How did you get `'': '1'` in your dictionary? Seems like a bug. 2. How would you express this constraint as a usage-pattern? 3. Getting the correct operator seems...
Something wrong with your comment rendering. Try indenting your code sections.
1. How can I reproduce it? The `'': '1'` thing. I tried this: ``` python >>> docopt('usage: prog add ', 'add 1 2') {'': '1', '': '2', 'add': True} ```...
If every command has many unique options you can try to follow this `git` example: https://github.com/docopt/docopt/tree/master/examples/git On the other hand, if the script is simple, I would put commands inline...
Yeah, maybe this should be supported...