[docs] [issue16399] argparse: append action with default list adds to list instead of overriding

Evgeny report at bugs.python.org
Mon Jul 30 06:13:05 EDT 2018


Evgeny <p3gus at yandex.ru> added the comment:

You don't need action='append'. 
For desired behavior you can pass action='store' with nargs='*'.
I think it's a simplest workaround.

----------
nosy: +gun146

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue16399>
_______________________________________


More information about the docs mailing list