#14034: added the argparse tutorial. Patch by Tshepang Lekhonkhobe.

This commit is contained in:
Ezio Melotti 2012-05-06 16:15:35 +03:00
parent 9f9970b15d
commit e48daea2a6
5 changed files with 777 additions and 0 deletions

View file

@ -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`