def make_opts(keys, options):
    # special case, don't print True for boolean options --noStateTooltip etc.
    return ' '.join([(('--%s %s' % (k, options.__dict__[k]
                                    if options.__dict__[k] != True else ''))
                      if not isinstance(k,tuple) else
                      ' '.join([('--%s %s' % (k[0], v))
                                 for v in options.__dict__[k[0]]]))
                     for k in keys 
                     if options.__dict__[k if not isinstance(k,tuple) 
                                         else k[0]]])
Parameters:
dataset/ETHPy150Open jon-jacky/PyModel/pymodel/pmv.py/make_opts--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/libs/libsentry/gen-py/sentry_policy_service/SentryPolicyService.py/Iface.rename_sentry_privilege