mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
GH-102456: Fix docstring and getopt options for base64 (gh-102457)
This commit is contained in:
parent
06249ec89f
commit
d828b35785
1 changed files with 2 additions and 2 deletions
|
@ -558,12 +558,12 @@ def decodebytes(s):
|
||||||
def main():
|
def main():
|
||||||
"""Small main program"""
|
"""Small main program"""
|
||||||
import sys, getopt
|
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
|
-h: print this help message and exit
|
||||||
-d, -u: decode
|
-d, -u: decode
|
||||||
-e: encode (default)"""
|
-e: encode (default)"""
|
||||||
try:
|
try:
|
||||||
opts, args = getopt.getopt(sys.argv[1:], 'hdeut')
|
opts, args = getopt.getopt(sys.argv[1:], 'hdeu')
|
||||||
except getopt.error as msg:
|
except getopt.error as msg:
|
||||||
sys.stdout = sys.stderr
|
sys.stdout = sys.stderr
|
||||||
print(msg)
|
print(msg)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue