-
-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-34913: Document gzip command line interface #9782
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few minor nits. I will leave it to the reviewers to decide upon the wording. Thanks for the PR :)
Doc/library/gzip.rst
Outdated
|
||
Once executed the :mod:`gzip` module keeps the input file(s). | ||
|
||
.. versionadded:: 3.8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The command line interface was present in previous versions too. Maybe this can be changed to versionchanged
to indicate argparse is used instead of manual parsing?
Doc/library/gzip.rst
Outdated
|
||
.. cmdoption:: -d, --decompress | ||
|
||
Uncompress the given file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be changed to decompress? I think it's more aligned with the command line argument being --decompress
and also with other parts of the doc where decompress is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch
Doc/library/gzip.rst
Outdated
---------------------- | ||
|
||
The :mod:`gzip` module provides a simple command line interface to compress or | ||
uncompress files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here to use decompress instead of uncompress.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for making the changes :)
https://bugs.python.org/issue34913