[issue22500] Argparse always stores True for positional arguments

2015-03-29 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> not a bug stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue22500] Argparse always stores True for positional arguments

2015-03-27 Thread paul j3
Changes by paul j3 : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue22500] Argparse always stores True for positional arguments

2014-09-25 Thread paul j3
paul j3 added the comment: A 'store_true' action takes 0 arguments. In effect `nargs=0`. With an `optional` (flagged) argument, the default `False` is used if the flag is absent, and set to `True` when the flag is encountered (its Action `__call__` function is run). A `positional` is 'encoun

[issue22500] Argparse always stores True for positional arguments

2014-09-25 Thread Tristan Fisher
New submission from Tristan Fisher: It's my understanding that giving the action="store_true" to an argument in argparse defaults to False. When using non-double-dashed/positional arguments, the argument resorts to True (even if explicitly marked default=False). I've attached a minimal exampl