mirror of https://github.com/python/cpython
Follow PEP-8 guidelines in tutorial for standard library (GH-26127)
This commit is contained in:
parent
087d0fa5b9
commit
6db2db91b9
|
@ -78,8 +78,9 @@ and an optional number of lines to be displayed::
|
|||
|
||||
import argparse
|
||||
|
||||
parser = argparse.ArgumentParser(prog = 'top',
|
||||
description = 'Show top lines from each file')
|
||||
parser = argparse.ArgumentParser(
|
||||
prog='top',
|
||||
description='Show top lines from each file')
|
||||
parser.add_argument('filenames', nargs='+')
|
||||
parser.add_argument('-l', '--lines', type=int, default=10)
|
||||
args = parser.parse_args()
|
||||
|
|
Loading…
Reference in New Issue