Vladimir Keleshev

Results 146 comments of Vladimir Keleshev

I suspect that at least one version of docopt that you are using is a pre-release version. Please submit `md5` hashes of `docopt.py` file on both systems. On OS X...

Anyway, you need an empty line between usage-section and options-section. I suspect that that can fix it.

This works: http://try.docopt.org/?doc=Get+PAM+list%0D%0AUsage%3A%0D%0Alist_vals_for_prot_sp.py+%5B--chrom%3DCHROM_NUM+default+is+all%5D%0D%0A%0D%0AOptions%3A%0D%0A-h+--help+Show+this+screen.&argv=default+is+all+--chrom%3DFOO Note that `default is all` are treated rightly as optional commands. For the next release–debugability is the priority.

I suggest you make a separate package that depends on docopt, and if it gets popular—I'll include this functionality in docopt. Also: #119. I recognise that there is a need...

It is a conscious design decision for docopt to return a dictionary (not a custom object), with keys being options/arguments/commands. Another design decision for docopt is to be simple and...

Yes, if you need dispatch, you need to strip `-` in Python. But not only, actually: you can have almost any character now in your options/arguments. For example, there are...

It breaks "There should be one way to do it".

To be fair: (1) I can't see anyone else except you wanting this, (2) it's a one-liner. Adding an argument to docopt function introduces more complexity in documentation (website, readme,...

Actually, I'm afraid, it is a bit more complex than that. `left` could contain not only options, but also not matched positional arguments and commands. Even worse, it may contain...

If you want to bundle docopt with your program, then you should totally use that solution. But it needs some work to be released to the public. E.g. `Unknown option:...