Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Backticks in gzip
  • Loading branch information
hugovk committed May 4, 2026
commit a02b9ed3387a5220ce8eb4a5ec5b91512d50f86d
5 changes: 2 additions & 3 deletions Lib/gzip.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,15 +664,14 @@ def decompress(data):
def main():
from argparse import ArgumentParser
parser = ArgumentParser(description=
"A simple command line interface for the gzip module: act like gzip, "
"A simple command line interface for the `gzip` module: act like `gzip`, "
"but do not delete the input file.",
color=True,
)
group = parser.add_mutually_exclusive_group()
group.add_argument('--fast', action='store_true', help='compress faster')
group.add_argument('--best', action='store_true', help='compress better')
group.add_argument("-d", "--decompress", action="store_true",
help="act like gunzip instead of gzip")
help="act like `gunzip` instead of `gzip`")

parser.add_argument("args", nargs="*", default=["-"], metavar='file')
args = parser.parse_args()
Expand Down