def _valid_global_options(self):
        """Global options accepted by setuptools (e.g. quiet or verbose)."""
        options = (opt[:2] for opt in setuptools.dist.Distribution.global_options)
        return {flag for long_and_short in options for flag in long_and_short if flag}
Global options accepted by setuptools (e.g. quiet or verbose).
product/gradle-plugin/src/main/python/setuptools/build_meta.py