diff options
author | Stéphane Wirtel <stephane@wirtel.be> | 2018-11-03 15:24:23 (GMT) |
---|---|---|
committer | Julien Palard <julien@palard.fr> | 2018-11-03 15:24:23 (GMT) |
commit | 3e28eed9ec2249bb11ad0db4629271b7ce9b7918 (patch) | |
tree | 3d55ce3fda51af044cb3ac6e667fbfb09123d231 /Doc | |
parent | fe62d877e300e1ee4145fff8f2bdba498b685f91 (diff) | |
download | cpython-3e28eed9ec2249bb11ad0db4629271b7ce9b7918.zip cpython-3e28eed9ec2249bb11ad0db4629271b7ce9b7918.tar.gz cpython-3e28eed9ec2249bb11ad0db4629271b7ce9b7918.tar.bz2 |
bpo-34969: Add --fast, --best on the gzip CLI (GH-9833)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/gzip.rst | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Doc/library/gzip.rst b/Doc/library/gzip.rst index b52dd1a..a93f377 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 |