Skip to content
Merged
Changes from all commits
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
GH-102456 Fix docstring and getopt options for base64
  • Loading branch information
ppmfloss committed Mar 6, 2023
commit d851b13e0db431dc68f76554c8b935f1434e0856
4 changes: 2 additions & 2 deletions Lib/base64.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,12 +558,12 @@ def decodebytes(s):
def main():
"""Small main program"""
import sys, getopt
usage = f"""usage: {sys.argv[0]} [-h|-d|-e|-u|-t] [file|-]
usage = f"""usage: {sys.argv[0]} [-h|-d|-e|-u] [file|-]
Comment thread
arhadthedev marked this conversation as resolved.
-h: print this help message and exit
-d, -u: decode
-e: encode (default)"""
try:
opts, args = getopt.getopt(sys.argv[1:], 'hdeut')
opts, args = getopt.getopt(sys.argv[1:], 'hdeu')
except getopt.error as msg:
sys.stdout = sys.stderr
print(msg)
Expand Down