Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(13)

#28102: zipfile.py script should print usage to stderr

Can't Edit
Can't Publish+Mail
Start Review
Created:
3 years, 4 months ago by stephen
Modified:
3 years, 4 months ago
Reviewers:
ghost.adh
CC:
StephenTurnbull, SilentGhost, devnull_psf.upfronthosting.co.za, storchaka
Visibility:
Public.

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats Patch
Lib/zipfile.py View 3 chunks +5 lines, -5 lines 1 comment Download

Messages

Total messages: 1
SilentGhost
3 years, 4 months ago #1
https://bugs.python.org/review/28102/diff/18517/Lib/zipfile.py
File Lib/zipfile.py (right):

https://bugs.python.org/review/28102/diff/18517/Lib/zipfile.py#newcode1966
Lib/zipfile.py:1966: print(USAGE, file=sys.stderr)
Why not instead do: sys.exit(USAGE) ?
Using command-line parsing library is another option.
Sign in to reply to this message.

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+