<#224 Allow cli to turn off default on flags> Pull...
# flyte-github
a
#224 Allow cli to turn off default on flags Pull request opened by wild-endeavor click option parsing wasn't correct for boolean flags that are on by default. These need a
--no
variant of the flag. can test with @env.task async def flag_example( flag: bool, normally_off: bool = False, normally_on: bool = True, optional: bool | None = None ) -> str: print(f"Args: {flag=}, {normally_off=}, {normally_on=}, {optional=}") return f"flag: {flag}, normally_off: {normally_off}, normally_on: {normally_on}, optional: {optional}" flyteorg/flyte-sdk
#224 Flags Pull request ready for review by wild-endeavor flyteorg/flyte-sdk