[issue28115] Use argparse for the zipfile module

Serhiy Storchaka report at bugs.python.org
Sun Oct 16 11:38:49 EDT 2016


Serhiy Storchaka added the comment:

Proposed patch makes zipfile using argparse and adds tests for zipfile CLI. Originally it is based on tarfile code and tests (but reworked, especially tests). Basically the interface is not changed, but added support of long options, and exit code in case of calling without options is changed from 1 to 2 (the same as wrong option is specified). The format of help and usage info is changed of course.

Tests are passed with old releases of Python (except supporting long options). They will be backported.

----------
Added file: http://bugs.python.org/file45117/zipfile_argparse.patch

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


More information about the Python-bugs-list mailing list