summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPartha P. Mukherjee <ppm.floss@gmail.com>2023-04-02 01:05:50 -0400
committerGitHub <noreply@github.com>2023-04-02 14:05:50 +0900
commitd828b35785eeb590b8ca92684038f33177989e46 (patch)
tree2b54f532674128887379d4c7b154d12e70127c61
parent06249ec89fffdab25f7088c86fcbbfdcebcc3ebd (diff)
downloadcpython-git-d828b35785eeb590b8ca92684038f33177989e46.tar.gz
GH-102456: Fix docstring and getopt options for base64 (gh-102457)
-rwxr-xr-xLib/base64.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/base64.py b/Lib/base64.py
index 95dc7b0086..e233647ee7 100755
--- a/Lib/base64.py
+++ b/Lib/base64.py
@@ -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)