[issue41769] Positional arguments with boolean actions behave differently

2020-09-21 Thread Rafael Guterres Jeffman
Rafael Guterres Jeffman added the comment: I don't think many users will try to use a boolean positional argument. I only excited this behavior because I was writing an abstraction over argparse to define the command line interface based on a configuration file, and I was trying to add

[issue41769] Positional arguments which use store boolean actions do not behave as other actions.

2020-09-11 Thread Rafael Guterres Jeffman
New submission from Rafael Guterres Jeffman : argparse allow the use of `store_true` and `store_false` for positional arguments, and although it is weird, it should be fine, but using either action raises a behavior I believe is wrong. Given the following Python code: ``` import argparse