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)
commit6cc7a41c2fd8849918427005222b1c8306621ebb (patch)
tree8a906e6414349ff9af9c89ccc5ba38b3596912c5 /Doc/library/argparse.rst
parentb4c8902a8727f99a4d361f6a3ebafa5002e56030 (diff)
downloadcpython-6cc7a41c2fd8849918427005222b1c8306621ebb.zip
cpython-6cc7a41c2fd8849918427005222b1c8306621ebb.tar.gz
cpython-6cc7a41c2fd8849918427005222b1c8306621ebb.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 0123b5c..186e12d 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`