Summary
sync --no-optimize doesn't pass False to the server, because the check is "if optimize" instead of "if optimize is not None". --mirror/--no-mirror works only because the server-side default is "False".
See https://github.com/pulp/pulp-cli/blob/main/pulpcore/cli/rpm/repository.py#L222-L225
Summary
sync --no-optimizedoesn't pass False to the server, because the check is "if optimize" instead of "if optimize is not None".--mirror/--no-mirrorworks only because the server-side default is "False".See https://github.com/pulp/pulp-cli/blob/main/pulpcore/cli/rpm/repository.py#L222-L225