Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
78362e72
Commit
78362e72
authored
May 25, 2017
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We now have an arbitrary prefix and sufix for Python code injection from command line
parent
61923ec5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
index.rst
docs/index.rst
+20
-3
No files found.
docs/index.rst
View file @
78362e72
...
...
@@ -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``
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment