Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7c817e62
Commit
7c817e62
authored
Oct 10, 2018
by
Stéphane Wirtel
Committed by
Julien Palard
Oct 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-34913: Document gzip command line interface (GH-9782)
parent
e8bbc52d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
Doc/library/gzip.rst
Doc/library/gzip.rst
+35
-0
Misc/NEWS.d/next/Documentation/2018-10-10-00-34-08.bpo-34913.kVd1Fv.rst
...xt/Documentation/2018-10-10-00-34-08.bpo-34913.kVd1Fv.rst
+1
-0
No files found.
Doc/library/gzip.rst
View file @
7c817e62
...
...
@@ -211,3 +211,38 @@ Example of how to GZIP compress a binary string::
The basic data compression module needed to support the :program:`gzip` file
format.
Command Line Interface
----------------------
The :mod:`gzip` module provides a simple command line interface to compress or
decompress files.
Once executed the :mod:`gzip` module keeps the input file(s).
.. versionchanged:: 3.8
Add a new command line interface with a usage.
Command line options
^^^^^^^^^^^^^^^^^^^^
.. cmdoption:: file
.. code-block:: shell-session
$ python -m gzip file
If *file* is not specified, read from :attr:`sys.stdin`.
.. cmdoption:: -d, --decompress
Decompress the given file
.. code-block:: shell-session
$ python -m gzip -d file.gz
.. cmdoption:: -h, --help
Show the help message.
Misc/NEWS.d/next/Documentation/2018-10-10-00-34-08.bpo-34913.kVd1Fv.rst
0 → 100644
View file @
7c817e62
Add documentation about the new command line interface of the gzip module.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment