If your Work object defines a function and that function is an underlying Click CLI command, some custom code is written to check for any @click.option that has is_flag as True. But, if your Click CLI command also has some @click.argument, it will break and throw this error as it tries to check for is_flag, because is_flag only applies to a @click.option and not a @click.argument.
If your
Work
object defines afunction
and thatfunction
is an underlying Click CLI command, some custom code is written to check for any@click.option
that hasis_flag
asTrue
. But, if your Click CLI command also has some@click.argument
, it will break and throw this error as it tries to check foris_flag
, becauseis_flag
only applies to a@click.option
and not a@click.argument
.