[issue23994] argparse fails to detect program name when there is a slash at the end of the program's path

paul j3 report at bugs.python.org
Tue Apr 21 22:11:07 CEST 2015


paul j3 added the comment:

This overlaps with http://bugs.python.org/issue22240
argparse support for "python -m module" in help

This issue also tries to handle zip files as well.

Deducing the `prog` was moved to a separate function.

One challenge with that issue was constructing a test framework.  Here the testing might simpler since the `foo/` directory doesn't have to exist (or at least we can fake it with a custom `sys.argv`).

----------
nosy: +paul.j3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23994>
_______________________________________


More information about the Python-bugs-list mailing list