[3.14] Doc: Fix missing closing parenthesis in argparse example (GH-143488) (#143489)

Doc: Fix missing closing parenthesis in argparse example (GH-143488)
(cherry picked from commit 51227b6b1a9181ef4da10811e7b5a55474fc4378)

Co-authored-by: Xiao Yuan <yuanx749@gmail.com>
This commit is contained in:
Miss Islington (bot) 2026-01-06 18:59:49 +01:00 committed by GitHub
parent 98128451ea
commit 66d38b326f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -740,7 +740,7 @@ upper-cased name. For example::
>>> parser = argparse.ArgumentParser(prog='PROG')
>>> parser.add_argument('--foo-bar')
>>> parser.parse_args(['--foo-bar', 'FOO-BAR']
>>> parser.parse_args(['--foo-bar', 'FOO-BAR'])
Namespace(foo_bar='FOO-BAR')
>>> parser.print_help()
usage: [-h] [--foo-bar FOO-BAR]