.. _option-handling-python: ====================== Python Option Handling ====================== Since |python| 2.7 :py:mod:`argparse` is the recommended |python| module for handling command line arguments. It provides a very advanced and flexible object-oriented API for handling command lines. An example of how to use :py:mod:`argparse` can be found in :download:`executable.py ` in the example project: .. literalinclude:: example-projects/build-system-essentials-python/src/buildsystemessentials/executable.py :language: python :start-after: mark-start::show-for-parsing :end-before: mark-end::show-for-parsing :linenos: