]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] Doc: Fix missing closing parenthesis in argparse example (GH-143488) (#143489)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 6 Jan 2026 17:59:49 +0000 (18:59 +0100)
committerGitHub <noreply@github.com>
Tue, 6 Jan 2026 17:59:49 +0000 (17:59 +0000)
Doc: Fix missing closing parenthesis in argparse example (GH-143488)
(cherry picked from commit 51227b6b1a9181ef4da10811e7b5a55474fc4378)

Co-authored-by: Xiao Yuan <yuanx749@gmail.com>
Doc/library/argparse.rst

index 413920ef1e17322a7214414eea5a80e86ce34197..d8df91c882f32145a7e4156410df31d04eae9af6 100644 (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]