

def setup(self, api_version=1):
    (options, args) = self.glance.parser.parse_known_args(self.base_argv)
    if options.help:
        options.command = None
        self.glance.do_help(options)
        sys.exit(2)
    client = self.glance._get_versioned_client(api_version, options, force_auth=True)
    return (options, args, client)

dataset/ETHPy150Open openstack/monitoring-for-openstack/oschecks/utils.py Glance.setup/original