osbuild: use osbuild_cli directly as main entry

Instead of having a another indirection via `main_cli`, directly
use `osbuild_cli` in as main function in `__main__.py`. Also use
that in as the entry point for the generated `osbuild` executable.
Change `osbuild_cli` to be self-contained, i.e. it directly uses
`sys.argv` and `sys.exit`.
This commit is contained in:
Christian Kellner 2020-06-22 17:40:35 +02:00 committed by Tom Gundersen
parent 7e392f819e
commit 53f6c41917
3 changed files with 6 additions and 17 deletions

View file

@ -11,7 +11,7 @@ setuptools.setup(
],
entry_points={
"console_scripts": [
"osbuild = osbuild.main_cli:main_cli"
"osbuild = osbuild.main_cli:osbuild_cli"
]
},
)