print help instead of invokinf 'interactive' command

This commit is contained in:
Jakub Trllo 2022-12-12 18:31:19 +01:00
parent f51325543a
commit 76f1cbc2e3

View file

@ -34,7 +34,8 @@ def main(ctx):
# Default command for headless openpype is 'interactive' command
# otherwise 'tray' is used.
if os.environ.get("OPENPYPE_HEADLESS_MODE") == "1":
ctx.invoke(interactive)
print(ctx.get_help())
sys.exit(0)
else:
ctx.invoke(tray)