]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-102456: Fix docstring and getopt options for base64 (gh-102457) 103190/head
authorPartha P. Mukherjee <ppm.floss@gmail.com>
Sun, 2 Apr 2023 05:05:50 +0000 (01:05 -0400)
committerGitHub <noreply@github.com>
Sun, 2 Apr 2023 05:05:50 +0000 (14:05 +0900)
Lib/base64.py

index 95dc7b0086051b8b1dda107789ff7766ea708c4a..e233647ee76639abc96bebe161cd9095095beda6 100755 (executable)
@@ -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)