Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Commit

Permalink
Add one more example related to #16
Browse files Browse the repository at this point in the history
  • Loading branch information
felixSchl committed Apr 17, 2016
1 parent 2662304 commit ddc329f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions testcases.docopt
Original file line number Diff line number Diff line change
Expand Up @@ -1814,6 +1814,10 @@ $ prog -f 1,2,3 --foo 4,5,6
{"--foo": [1, 2, 3, 4, 5, 6],
"-f": [1, 2, 3, 4, 5, 6]}

$ prog -f 1,2 --foo 3,4 -f 5,6
{"--foo": [1, 2, 3, 4, 5, 6],
"-f": [1, 2, 3, 4, 5, 6]}

r"""
Usage:
foobar [-f X ...] [--foo X ...]
Expand All @@ -1832,3 +1836,8 @@ $ prog -f 1,2,3,4,5,6
$ prog -f 1,2,3 --foo 4,5,6
{"--foo": [1, 2, 3, 4, 5, 6],
"-f": [1, 2, 3, 4, 5, 6]}

$ prog -f 1,2 --foo 3,4 -f 5,6
{"--foo": [1, 2, 3, 4, 5, 6],
"-f": [1, 2, 3, 4, 5, 6]}

0 comments on commit ddc329f

Please sign in to comment.