Éric Araujo <[email protected]> added the comment:

Isn’t the obvious workaround to pass a dest argument which is a valid 
identifier?  add_argument('spam-eggs', dest='spam_eggs')

Maybe argparse in 3.4 could do this transformation automatically (see how 
namedtuple converts anything to valid identifiers).

----------
nosy: +eric.araujo

_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue15125>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to