Skip to content

Commit

Permalink
Temporary fix for cli entry_point + test_suite
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Le <[email protected]>
  • Loading branch information
LecrisUT committed Aug 9, 2023
1 parent 5d05c50 commit 4d79f9c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions fmf/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,12 @@ def main(arguments=None, path=None):
""" Parse options, do what is requested """
parser = Parser(arguments, path)
return parser.output


def cli_entry():
try:
main()
except fmf.utils.GeneralError as error:
if "--debug" not in sys.argv:
fmf.utils.log.error(error)
raise
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ all = [
]

[project.scripts]
fmf = 'fmf.cli:main'
fmf = 'fmf.cli:cli_entry'

[tool.hatch]
version.source = 'vcs'
Expand Down

0 comments on commit 4d79f9c

Please sign in to comment.