summaryrefslogtreecommitdiffstats
path: root/Doc/library/argparse.rst
diff options
context:
space:
mode:
authorStanley <46876382+slateny@users.noreply.github.com>2022-12-09 03:31:19 (GMT)
committerGitHub <noreply@github.com>2022-12-09 03:31:19 (GMT)
commit286e3c76a9cb8f1adc2a915f0d246a1e2e408733 (patch)
tree2cf574ca38a0f8222784cb691666548e8d0b686a /Doc/library/argparse.rst
parent3e06b5030b18ca9d9d507423b582d13f38d393f2 (diff)
downloadcpython-286e3c76a9cb8f1adc2a915f0d246a1e2e408733.zip
cpython-286e3c76a9cb8f1adc2a915f0d246a1e2e408733.tar.gz
cpython-286e3c76a9cb8f1adc2a915f0d246a1e2e408733.tar.bz2
gh-99087: Add missing newline for prompts in docs (GH-98993)
Add newline for prompts so copying to REPL does not cause errors.
Diffstat (limited to 'Doc/library/argparse.rst')
-rw-r--r--Doc/library/argparse.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index f8839d0..e6c9648 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -565,6 +565,7 @@ arguments they contain. For example::
>>> with open('args.txt', 'w', encoding=sys.getfilesystemencoding()) as fp:
... fp.write('-f\nbar')
+ ...
>>> parser = argparse.ArgumentParser(fromfile_prefix_chars='@')
>>> parser.add_argument('-f')
>>> parser.parse_args(['-f', 'foo', '@args.txt'])