Skip to content

Commit

Permalink
GH-102456: Fix docstring and getopt options for base64 (gh-102457)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppmfloss authored Apr 2, 2023
1 parent 06249ec commit d828b35
Showing 1 changed file with 2 additions and 2 deletions.
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|-]
-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

0 comments on commit d828b35

Please sign in to comment.