code: def _combineargs(self, *args, **kwargs):
          
          d = {arg: True for arg in args}   # switches are kwargs with value True
          d.update(kwargs)
          return d
docs: Add switches as 'options' with value True to the options dict.