.. _section_example_oechem_options:

Define parameters
================================================================================

A program that shows definition of parameters.

Example
--------------------------------------------------------------------------------

.. oe:language:: c++

   .. code-block:: console

      prompt> options

.. oe:language:: python

   .. code-block:: console

      prompt> options.py

.. oe:language:: java csharp

   .. note::

     This example uses Preliminary API that currently only available in
     C++ and Python.

Code
--------------------------------------------------------------------------------

.. oe:language:: c++

   .. only:: oehtml

      .. admonition:: Download code

         :download:`options.cpp <../../../../../sublibs/tklibs/oechem/examples/options.cpp>`

   .. only:: oepdf

      .. oe:source:: options.cpp
         :language: c++

.. oe:language:: python

   .. only:: oehtml

      .. admonition:: Download code

         :download:`options.py <../../../../../wrappers/python/examples/oechem/options.py>`

      .. literalinclude:: ../../../../../wrappers/python/examples/oechem/options.py


   .. only:: oepdf

      .. oe:source:: options.py
         :language: python

.. seealso::

   * :ref:`OEOptions <OESystem_OEOptions>` class
