summaryrefslogtreecommitdiff
path: root/Doc/library/gzip.rst
diff options
context:
space:
mode:
authorStéphane Wirtel <stephane@wirtel.be>2018-11-03 16:24:23 +0100
committerJulien Palard <julien@palard.fr>2018-11-03 16:24:23 +0100
commit3e28eed9ec2249bb11ad0db4629271b7ce9b7918 (patch)
tree3d55ce3fda51af044cb3ac6e667fbfb09123d231 /Doc/library/gzip.rst
parentfe62d877e300e1ee4145fff8f2bdba498b685f91 (diff)
downloadcpython-git-3e28eed9ec2249bb11ad0db4629271b7ce9b7918.tar.gz
bpo-34969: Add --fast, --best on the gzip CLI (GH-9833)
Diffstat (limited to 'Doc/library/gzip.rst')
-rw-r--r--Doc/library/gzip.rst15
1 files changed, 8 insertions, 7 deletions
diff --git a/Doc/library/gzip.rst b/Doc/library/gzip.rst
index b52dd1a11a..a93f377438 100644
--- a/Doc/library/gzip.rst
+++ b/Doc/library/gzip.rst
@@ -222,25 +222,26 @@ Once executed the :mod:`gzip` module keeps the input file(s).
.. versionchanged:: 3.8
Add a new command line interface with a usage.
+ By default, when you will execute the CLI, the default compression level is 6.
Command line options
^^^^^^^^^^^^^^^^^^^^
.. cmdoption:: file
- .. code-block:: shell-session
+ If *file* is not specified, read from :attr:`sys.stdin`.
- $ python -m gzip file
+.. cmdoption:: --fast
- If *file* is not specified, read from :attr:`sys.stdin`.
+ Indicates the fastest compression method (less compression).
-.. cmdoption:: -d, --decompress
+.. cmdoption:: --best
- Decompress the given file
+ Indicates the slowest compression method (best compression).
- .. code-block:: shell-session
+.. cmdoption:: -d, --decompress
- $ python -m gzip -d file.gz
+ Decompress the given file.
.. cmdoption:: -h, --help