[issue30127] argparse action not correctly describing the right behavior

2017-04-21 Thread Diego Costantini
Diego Costantini added the comment: You are right, I misunderstood the part where it sets defaults opposite to the stored value, although apparently over one year ago I did understand it correctly when I first went through that documentation. Today my second pair of eyes had my same

[issue30127] argparse action not correctly describing the right behavior

2017-04-21 Thread Diego Costantini
New submission from Diego Costantini: Here https://docs.python.org/2/library/argparse.html#action we have the following: >>> parser = argparse.ArgumentParser() >>> parser.add_argument('--foo', action='store_true') >>> parser.add_argument('-