We now have an arbitrary prefix and sufix for Python code injection from command line

parent 61923ec5
......@@ -1517,9 +1517,26 @@ Hdlmake can be run with several arguments. The way of using them is identical wi
--------------
Shows help message that is automatically generated with Python's optparse module. Gives a short description of each available option.
``--py ARBITRARY_CODE``
-----------------------
Add arbitrary code when evaluation all manifests
``-p, --prefix ARBITRARY_CODE``
-------------------------------
Add arbitrary Python code from the command line that **will be evaluated before each Manifest.py** parse action across the hierarchy.
As an example, this command will generate the Makefile and will try to print ``Hello hdlmake`` before each ``Manifest.py`` run:
.. code-block:: bash
hdlmake -p "print('Hello hdlmake')"
``-s, --sufix ARBITRARY_CODE``
------------------------------
Add arbitrary Python code from the command line that **will be evaluated after each Manifest.py** parse action across the hierarchy.
As an example, this command will generate the Makefile but will try to print ``Bye, bye hdlmake`` after each ``Manifest.py`` run:
.. code-block:: bash
hdlmake -s "print('Bye, bye hdlmake')"
``--log LOG``
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment