gh-112165: Fix typo in `__main__.py` (#112183)

Change '[2]' to '[1]' to get second argument.
This commit is contained in:
Terry Jan Reedy 2023-11-16 20:05:16 -05:00 committed by GitHub
parent f92ea63f6f
commit 8cd70eefc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ students::
import sys
from .student import search_students
student_name = sys.argv[2] if len(sys.argv) >= 2 else ''
student_name = sys.argv[1] if len(sys.argv) >= 2 else ''
print(f'Found student: {search_students(student_name)}')
Note that ``from .student import search_students`` is an example of a relative