mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Follow PEP-8 guidelines in tutorial for standard library (GH-26127)
(cherry picked from commit 6db2db91b9
)
Co-authored-by: Bob Kline <bkline@users.noreply.github.com>
This commit is contained in:
parent
470dfe20cb
commit
a331d0f627
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue