[issue18074] argparse: Namespace can contain critical characters

2013-05-27 Thread R. David Murray
Changes by R. David Murray : -- superseder: -> argparse: positional arguments containing - in name not handled well ___ Python tracker ___ _

[issue18074] argparse: Namespace can contain critical characters

2013-05-27 Thread Sworddragon
Changes by Sworddragon : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue18074] argparse: Namespace can contain critical characters

2013-05-27 Thread Sworddragon
Sworddragon added the comment: I have found another report about this: http://bugs.python.org/issue15125 -- resolution: -> duplicate status: open -> closed ___ Python tracker __

[issue18074] argparse: Namespace can contain critical characters

2013-05-27 Thread Sworddragon
New submission from Sworddragon: Positional arguments which have no dest attribute doesn't replace any - with _. In the attachments is an example script which demonstrate this. The output looks like this: sworddragon@ubuntu:~$ ./args.py foo Namespace(foo-bar2='foo', foo_bar1=None) --