[issue32474] argparse nargs should support string wrapped integers too

Shubham Sharma report at bugs.python.org
Mon Jan 1 02:34:17 EST 2018


Shubham Sharma <shubhamsharma1172 at gmail.com> added the comment:

nargs can take various values like "*", "+", etc. but doesn't support integers which are wrapped around in strings. Say, I want to take a user input for the nargs value (just a hypothetical situation); now I'll have to check additionally whether there's a numeric value inside the input char and then cast it to integer manually. An enhancement like this would eliminate this hassle and support for these will be helpful.

----------

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


More information about the Python-bugs-list mailing list