mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
parent
ecfeb7f095
commit
70a6b49821
246 changed files with 926 additions and 962 deletions
|
|
@ -47,10 +47,10 @@ if __name__ == "__main__":
|
|||
print "not ok: no conflict between -h and -H"
|
||||
|
||||
parser.add_option("-f", "--file", dest="file")
|
||||
#print `parser.get_option("-f")`
|
||||
#print `parser.get_option("-F")`
|
||||
#print `parser.get_option("--file")`
|
||||
#print `parser.get_option("--fIlE")`
|
||||
#print repr(parser.get_option("-f"))
|
||||
#print repr(parser.get_option("-F"))
|
||||
#print repr(parser.get_option("--file"))
|
||||
#print repr(parser.get_option("--fIlE"))
|
||||
(options, args) = parser.parse_args(["--FiLe", "foo"])
|
||||
assert options.file == "foo", options.file
|
||||
print "ok: case insensitive long options work"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue