forked from docopt/docopt.go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
previously it would only match a string that was only uppercase characters. this fix allows a string to have non-uppercasable characters as long as there is at least one uppercase character a simple testcase has also been added
- Loading branch information
Showing
3 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
r"""usage: prog [NAME_-2]...""" | ||
$ prog 10 20 | ||
{"NAME_-2": ["10", "20"]} | ||
|
||
$ prog 10 | ||
{"NAME_-2": ["10"]} | ||
|
||
$ prog | ||
{"NAME_-2": []} |