try.docopt.org icon indicating copy to clipboard operation
try.docopt.org copied to clipboard

The try.docopt.org site does not process repeating positional arguments properly

Open harijay opened this issue 10 years ago • 5 comments

Hi This is an issue in only the browser based trial. For a command like

Usage: pdb_prepare ... --ref=reference.pdb [--desc]"

If you give the above doc string repeat arguments to test it with for eg.

file1.pdb file2.pdb file4.pdb --ref=test.pdb

The result displayed in the browser has the file positional argument without any spaces.

"": "file1.pdbfile2.pdbfile4.pdb"}

Instead of

'': ['file1.pdb', 'file2.pdb', 'file4.pdb'],

Not an issue with the actual module though.

harijay avatar Sep 16 '13 19:09 harijay