diff options
author | umarcor <unai.martinezcorral@ehu.eus> | 2021-06-20 02:57:43 +0200 |
---|---|---|
committer | umarcor <unai.martinezcorral@ehu.eus> | 2021-06-22 13:15:28 +0200 |
commit | 015f62d05b35466a6fbb5f33370d9615e028f9f0 (patch) | |
tree | c356f92c21c1d2e39ae146f6ce11e451bcc3018b | |
parent | bf45d9939dc26d0d584dd549923b9962f83360ec (diff) | |
download | ghdl-015f62d05b35466a6fbb5f33370d9615e028f9f0.tar.gz ghdl-015f62d05b35466a6fbb5f33370d9615e028f9f0.tar.bz2 ghdl-015f62d05b35466a6fbb5f33370d9615e028f9f0.zip |
pyGHDL: add ghdl-dom entrypoint
-rwxr-xr-x | pyGHDL/cli/DOM.py | 4 | ||||
-rw-r--r-- | setup.py | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/pyGHDL/cli/DOM.py b/pyGHDL/cli/DOM.py index 2b846edde..1ab3d4321 100755 --- a/pyGHDL/cli/DOM.py +++ b/pyGHDL/cli/DOM.py @@ -40,7 +40,7 @@ class Application: print("\n".join(buffer)) -def main(items): +def main(items=argv[1:]): _exitcode = 0 if len(items) < 1: @@ -63,4 +63,4 @@ def main(items): if __name__ == "__main__": - sysexit(main(argv[1:])) + sysexit(main()) @@ -93,7 +93,8 @@ setuptools_setup( packages=setuptools_find_packages(exclude=("tests",)), entry_points={ 'console_scripts': [ - "ghdl-ls = pyGHDL.cli.lsp:main" + "ghdl-ls = pyGHDL.cli.lsp:main", + "ghdl-dom = pyGHDL.cli.DOM:main" ] }, |