diff options
author | Partha P. Mukherjee <ppm.floss@gmail.com> | 2023-04-02 05:05:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-02 05:05:50 (GMT) |
commit | d828b35785eeb590b8ca92684038f33177989e46 (patch) | |
tree | 2b54f532674128887379d4c7b154d12e70127c61 /Lib/base64.py | |
parent | 06249ec89fffdab25f7088c86fcbbfdcebcc3ebd (diff) | |
download | cpython-d828b35785eeb590b8ca92684038f33177989e46.zip cpython-d828b35785eeb590b8ca92684038f33177989e46.tar.gz cpython-d828b35785eeb590b8ca92684038f33177989e46.tar.bz2 |
GH-102456: Fix docstring and getopt options for base64 (gh-102457)
Diffstat (limited to 'Lib/base64.py')
-rwxr-xr-x | Lib/base64.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/base64.py b/Lib/base64.py index 95dc7b0..e233647 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) |