diff --git a/flytekit/clis/sdk_in_container/run.py b/flytekit/clis/sdk_in_container/run.py index 122a739265..9919d857d3 100644 --- a/flytekit/clis/sdk_in_container/run.py +++ b/flytekit/clis/sdk_in_container/run.py @@ -4,6 +4,7 @@ import json import os import pathlib +import sys import tempfile import typing from dataclasses import dataclass, field, fields @@ -741,6 +742,8 @@ def _get_entities(self, r: FlyteRemote, project: str, domain: str, limit: int) - return [] def list_commands(self, ctx): + if "--help" in sys.argv: + return [] if self._entities or ctx.obj is None: return self._entities