Author Krzysztof Leszczyński
Recipients Krzysztof Leszczyński
Date 2018-02-12.15:09:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1518448195.82.0.467229070634.issue32833@psf.upfronthosting.co.za>
In-reply-to
Content
Step to reproduce:

import argparse
ap=argparse.ArgumentParser()
ap.add_argument("--a-b", "--ab")
v1=ap.parse_args(["--ab", "xx"])
print(v1)
# v1==Namespace(a_b='xx')
v2=ap.parse_args(["--a", "xx"])
# v2 should be equal to v1 but instead it raises an error, in spite that --a-b and --ab are aliases
History
Date User Action Args
2018-02-12 15:09:55Krzysztof Leszczyńskisetrecipients: + Krzysztof Leszczyński
2018-02-12 15:09:55Krzysztof Leszczyńskisetmessageid: <1518448195.82.0.467229070634.issue32833@psf.upfronthosting.co.za>
2018-02-12 15:09:55Krzysztof Leszczyńskilinkissue32833 messages
2018-02-12 15:09:55Krzysztof Leszczyńskicreate