summaryrefslogtreecommitdiffstats
path: root/Doc/library/argparse.rst
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2012-05-06 13:15:35 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2012-05-06 13:15:35 (GMT)
commite48daea2a668ac5bfc112faaa6540b9ca56fb70c (patch)
treefd3c7a0c9116ad373f4dc2570786c65e0783afe4 /Doc/library/argparse.rst
parent9f9970b15d356bc0adee1dc7bb11bfc63712e7fd (diff)
downloadcpython-e48daea2a668ac5bfc112faaa6540b9ca56fb70c.zip
cpython-e48daea2a668ac5bfc112faaa6540b9ca56fb70c.tar.gz
cpython-e48daea2a668ac5bfc112faaa6540b9ca56fb70c.tar.bz2
#14034: added the argparse tutorial. Patch by Tshepang Lekhonkhobe.
Diffstat (limited to 'Doc/library/argparse.rst')
-rw-r--r--Doc/library/argparse.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index 50a4533..83e8479 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -12,6 +12,12 @@
--------------
+.. sidebar:: Tutorial
+
+ This page contains the API reference information. For a more gentle
+ introduction to Python command-line parsing, have a look at the
+ :ref:`argparse tutorial <argparse-tutorial>`.
+
The :mod:`argparse` module makes it easy to write user-friendly command-line
interfaces. The program defines what arguments it requires, and :mod:`argparse`
will figure out how to parse those out of :data:`sys.argv`. The :mod:`argparse`